[libvirt] [PATCH] storage: allow metadata preallocation when creating qcow2 images

Eric Blake eblake at redhat.com
Thu Nov 8 22:10:22 UTC 2012


On 11/08/2012 09:28 AM, Daniel P. Berrange wrote:
> 
> I've thought about doing it this way before, but I always felt it was
> a bit of a gross hack. It would be nice to keep the 'allocation' element
> as purely describing the data sector allocation. I was recently wondering
> if we should just add a flag to the virStorageVolCreate like
> 
>   VIR_STORAGE_VOL_PREALLOC_METADATA

I agree that adding a new flag is cleaner; thankfully,
virStorageVolCreateXML has a flags argument ready to use.

-- 
Eric Blake   eblake at 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: 617 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20121108/68ca8b53/attachment-0001.sig>


More information about the libvir-list mailing list