mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-08 14:29:56 +00:00
c9ec7088c7
This patch adds support to qcow2 formatted filesystem object storage by instructing qemu-img to build them with preallocation=falloc whenever the XML described storage <allocation> matches its <capacity>. For all other cases the filesystem stored objects are built with preallocation=metadata. Signed-off-by: Wim ten Have <wim.ten.have@oracle.com> Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
5 lines
150 B
Plaintext
5 lines
150 B
Plaintext
qemu-img convert -f raw -O qcow2 \
|
|
-o encryption=on,preallocation=falloc \
|
|
/var/lib/libvirt/images/sparse.img \
|
|
/var/lib/libvirt/images/OtherDemo.img
|