[libvirt-users] Does libvirt have API to detect image format

Eric Blake eblake at redhat.com
Mon Aug 11 21:03:40 UTC 2014


On 08/11/2014 02:59 PM, Jianfeng Tang wrote:

[please don't top-post on technical lists]

> Unfortunately my backing store file is not in a volume. So I guess I
> cannot use that method.

It's very easy to create a storage pool for an arbitrary directory, at
which point you can then use the virStorageVol* API on that file.  The
only reason we make you go through the virStoragePool* hoop rather than
acting directly on files is so that we can support remote connections
sanely (a volume name in relation to a pool is unambiguous, whereas a
file name is ambiguous on whether it is on the client's machine or the
server's machine).

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 539 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20140811/5805ce72/attachment.sig>


More information about the libvirt-users mailing list