[libvirt] [PATCH libvirt sparse files under format=qcow2 v1 0/2] Problem: libvirt fails to create fully allocated qcow2 storage objects.

Wim Ten Have posted 2 patches 6 years ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20180329084841.11771-1-wim.ten.have@oracle.com
Test syntax-check passed
include/libvirt/libvirt-storage.h                   |  5 ++++-
src/storage/storage_util.c                          | 21 +++++++++++++++++----
.../qcow2-nocapacity-convert-prealloc.argv          |  2 +-
3 files changed, 22 insertions(+), 6 deletions(-)
[libvirt] [PATCH libvirt sparse files under format=qcow2 v1 0/2] Problem: libvirt fails to create fully allocated qcow2 storage objects.
Posted by Wim Ten Have 6 years ago
From: Wim ten Have <wim.ten.have@oracle.com>

When virt-install requests to create fully allocated storage object when
the parameter sparse=no is set,  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.

Wim ten Have (2):
  libvirt can't create fully allocated qcow2 formatted storage objects.
  Adjust qemu-img test required to target with preallocation=falloc.

 include/libvirt/libvirt-storage.h                   |  5 ++++-
 src/storage/storage_util.c                          | 21 +++++++++++++++++----
 .../qcow2-nocapacity-convert-prealloc.argv          |  2 +-
 3 files changed, 22 insertions(+), 6 deletions(-)

-- 
2.14.3

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