[libvirt] [PATCH v2 0/1] Fix qcow2 fully allocated filesystem objects.

Wim Ten Have posted 1 patch 6 years ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20180409181435.30540-1-wim.ten.have@oracle.com
Test syntax-check passed
src/conf/storage_conf.c                                        |  3 +++
src/storage/storage_util.c                                     | 10 ++++++++--
.../qcow2-nocapacity-convert-prealloc.argv                     |  2 +-
3 files changed, 12 insertions(+), 3 deletions(-)
[libvirt] [PATCH v2 0/1] Fix qcow2 fully allocated filesystem objects.
Posted by Wim Ten Have 6 years ago
From: Wim ten Have <wim.ten.have@oracle.com>

When tools like virt-install request to create a fully allocated
filesystem object storage by setting the parameter sparse=no, libvirt
doesn't allow that to happen for qcow2 formatted files.

Regardless of its XML instuction request libvirt always targets its
filesystem object storage with preallocation=metadata if format=qcow2
is in effect.  This results in sparse files which could cause problems
since total image storage potentially can overrun actual filesystem
available space.

Changes from v1:
* Fix XML target sparse setting and apply for qcow2.
* Bring the test change under same PATCH.

Wim ten Have (1):
  storage: extend preallocation flags support for qemu-img

 src/conf/storage_conf.c                                        |  3 +++
 src/storage/storage_util.c                                     | 10 ++++++++--
 .../qcow2-nocapacity-convert-prealloc.argv                     |  2 +-
 3 files changed, 12 insertions(+), 3 deletions(-)

-- 
2.14.3

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list