]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: allow metadata preallocation when creating qcow2 images
authorJán Tomko <jtomko@redhat.com>
Wed, 5 Dec 2012 10:48:07 +0000 (11:48 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 7 Dec 2012 10:46:48 +0000 (11:46 +0100)
commit1c9a2fb1aef1729ac86cd6648b5c2b7584f5f698
treecf45b50b46f346b0cf831118b8aa3a81afaf38a3
parentb718ded39a6f5642a5b5c42134f6b1717ae25c49
storage: allow metadata preallocation when creating qcow2 images

Add VIR_STORAGE_VOL_CREATE_PREALLOC_METADATA flag to virStorageVolCreateXML
and virStorageVolCreateXMLFrom. This flag requests metadata
preallocation when creating/cloning qcow2 images, resulting in creating
a sparse file with qcow2 metadata. It has only slightly larger disk usage
compared to new image with no allocation, but offers higher performance.
include/libvirt/libvirt.h.in
src/libvirt.c
src/storage/storage_backend.c
src/storage/storage_backend.h
src/storage/storage_backend_fs.c
src/storage/storage_driver.c