[libvirt] [PATCH 2/4] storage: Refactor storage pool type checks