[libvirt] [PATCH 1/3] conf: Refactor helpers to retrieve actual storage type