libvirt/src/storage
Pavel Hrdina 81a3042a12 storage_util: fix qemu-img sparse allocation
Commit <c9ec7088c7a3f4cd26bb471f1f243931fff6f4f9> introduced a support
to fully allocate qcow2 images when <allocation> matches <capacity> but
it doesn't work as expected.

The issue is that info.size_arg is in KB but the info.allocation
introduced by the mentioned commit is in B. This results in using
"preallocation=falloc," in cases where "preallocation=metadata," should
be used.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2020-08-25 16:53:13 +02:00
..
meson.build meson: src: add check-aclrules test 2020-08-03 09:27:05 +02:00
parthelper.c util: Move virIsDevMapperDevice() to virdevmapper.c 2020-06-15 14:50:46 +02:00
storage_backend_disk.c util: Move virIsDevMapperDevice() to virdevmapper.c 2020-06-15 14:50:46 +02:00
storage_backend_disk.h src/storage: use #pragma once in headers 2019-06-19 17:12:31 +02:00
storage_backend_fs.c storage: remove unneeded cleanup labels 2019-11-12 17:54:01 +01:00
storage_backend_fs.h src/storage: use #pragma once in headers 2019-06-19 17:12:31 +02:00
storage_backend_gluster.c virStorageFileGetMetadataFromBuf: Remove 'backingFormat' argument 2020-02-24 15:12:32 +01:00
storage_backend_gluster.h src/storage: use #pragma once in headers 2019-06-19 17:12:31 +02:00
storage_backend_iscsi_direct.c storage: avoid maybe-uninitialized warning by GCC 10 2020-08-17 08:25:28 +02:00
storage_backend_iscsi_direct.h src/storage: use #pragma once in headers 2019-06-19 17:12:31 +02:00
storage_backend_iscsi.c virsh: include virutil.h where used 2020-02-24 23:15:50 +01:00
storage_backend_iscsi.h src/storage: use #pragma once in headers 2019-06-19 17:12:31 +02:00
storage_backend_logical.c storage: logical: drop unused PV_BLANK_SECTOR_SIZE 2020-08-03 07:23:45 +02:00
storage_backend_logical.h src/storage: use #pragma once in headers 2019-06-19 17:12:31 +02:00
storage_backend_mpath.c lib: Drop needless ret variables 2020-05-05 13:08:53 +02:00
storage_backend_mpath.h src/storage: use #pragma once in headers 2019-06-19 17:12:31 +02:00
storage_backend_rbd.c Use g_strfeev instead of virStringFreeList 2020-08-03 15:37:36 +02:00
storage_backend_rbd.h src/storage: use #pragma once in headers 2019-06-19 17:12:31 +02:00
storage_backend_scsi.c storage: scsi: remove unused LINUX_SYSFS_SCSI_HOST_POSTFIX 2020-08-03 07:23:45 +02:00
storage_backend_scsi.h src/storage: use #pragma once in headers 2019-06-19 17:12:31 +02:00
storage_backend_sheepdog_priv.h src/storage: use #pragma once in headers 2019-06-19 17:12:31 +02:00
storage_backend_sheepdog.c Use g_strfeev instead of virStringFreeList 2020-08-03 15:37:36 +02:00
storage_backend_sheepdog.h src/storage: use #pragma once in headers 2019-06-19 17:12:31 +02:00
storage_backend_vstorage.c storage: fix vstorage backend build 2020-07-13 09:27:42 +03:00
storage_backend_vstorage.h src/storage: use #pragma once in headers 2019-06-19 17:12:31 +02:00
storage_backend_zfs.c Use g_strfeev instead of virStringFreeList 2020-08-03 15:37:36 +02:00
storage_backend_zfs.h src/storage: use #pragma once in headers 2019-06-19 17:12:31 +02:00
storage_backend.c meson: remove '.libs' from all relevant paths 2020-08-03 09:27:00 +02:00
storage_backend.h src/storage: use #pragma once in headers 2019-06-19 17:12:31 +02:00
storage_driver.c Drop needless variable 2020-05-05 11:19:34 +02:00
storage_driver.h Use G_GNUC_WARN_UNUSED_RESULT instead of ATTRIBUTE_RETURN_CHECK 2019-10-15 11:25:22 +02:00
storage_file_fs.c storage_file: create: Create new images with write permission bit 2020-05-12 06:56:09 +02:00
storage_file_fs.h src/storage: use #pragma once in headers 2019-06-19 17:12:31 +02:00
storage_file_gluster.c storage_file: create: Create new images with write permission bit 2020-05-12 06:56:09 +02:00
storage_file_gluster.h src/storage: use #pragma once in headers 2019-06-19 17:12:31 +02:00
storage_util.c storage_util: fix qemu-img sparse allocation 2020-08-25 16:53:13 +02:00
storage_util.h Use G_GNUC_WARN_UNUSED_RESULT instead of ATTRIBUTE_RETURN_CHECK 2019-10-15 11:25:22 +02:00
virtstoraged.init.in configure: Provide OpenRC scripts for sub-daemons 2019-12-16 10:11:22 +01:00
virtstoraged.service.in systemd: Move timeout from service files to sysconf files 2020-04-03 11:50:50 +02:00
virtstoraged.sysconf systemd: Move timeout from service files to sysconf files 2020-04-03 11:50:50 +02:00