libvirt/src/storage
Guido Günther 269d39afe5 storage: only run safezero if allocation is > 0
While a zero allocation in safezero should be fine it isn't when we use
posix_fallocate which returns EINVAL on a zero allocation.

While we could skip the zero allocation in safezero_posix_fallocate it's
an optimization to do it for all allocations.

This fixes vm installation via virtinst for me which otherwise aborts
like:

   Starting install...
   Retrieving file linux...               | 5.9 MB     00:01 ...
   Retrieving file initrd.gz...           |  29 MB     00:07 ...
   ERROR    Couldn't create storage volume 'virtinst-linux.sBgds4': 'cannot fill file '/var/lib/libvirt/boot/virtinst-linux.sBgds4': Invalid argument'

The error was introduced by e30297b0 as spotted by Chunyan Liu
2015-08-24 13:51:44 +02:00
..
parthelper.c Remove unnecessary curly brackets in src/storage/ 2014-11-14 17:13:01 +01:00
storage_backend_disk.c storage: Force setting of disk format type 2015-06-23 09:25:24 -04:00
storage_backend_disk.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
storage_backend_fs.c storage: Fix pool building when directory already exists 2015-07-17 15:24:18 +02:00
storage_backend_fs.h storage: add file functions for local and block files 2014-02-14 10:47:57 +01:00
storage_backend_gluster.c Revert "Restore skipping of setting capacity" 2015-03-02 08:07:11 +01:00
storage_backend_gluster.h storage: Add storage file backends for gluster 2014-02-14 11:07:23 +01:00
storage_backend_iscsi.c iscsi: do not fail to stop a stopped pool 2015-04-30 13:05:10 +02:00
storage_backend_iscsi.h Move functions using iscsiadm to viriscsi.c 2014-03-20 18:04:50 +01:00
storage_backend_logical.c logical: Fix typo in error message 2015-06-09 18:21:57 -04:00
storage_backend_logical.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
storage_backend_mpath.c mpath: Update path in CheckPool function 2015-06-30 08:47:02 -04:00
storage_backend_mpath.h Change file names in comments to match the files they are in 2014-03-10 14:26:04 +01:00
storage_backend_rbd.c rbd: Return error from rbd_create for message processing 2015-07-16 12:31:25 -04:00
storage_backend_rbd.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
storage_backend_scsi.c scsi: Force error for SCSI pools on virStorageBackendSCSIFindLUs failure 2015-06-24 09:18:59 -04:00
storage_backend_scsi.h storage: Move virStorageBackendSCSIGetHostNumber into iscsi backend 2013-04-08 18:41:06 +08:00
storage_backend_sheepdog.c update sheepdog client] update sheepdog client path 2015-06-19 16:05:04 +02:00
storage_backend_sheepdog.h Change file names in comments to match the files they are in 2014-03-10 14:26:04 +01:00
storage_backend_zfs.c storage: Remove unused attribute conn from 'checkPool' callback 2015-04-02 11:57:07 +02:00
storage_backend_zfs.h storage: ZFS support 2014-08-12 19:40:20 +04:00
storage_backend.c storage: only run safezero if allocation is > 0 2015-08-24 13:51:44 +02:00
storage_backend.h storage: conf: Don't set any default <mode> in the XML 2015-05-25 20:52:55 -04:00
storage_driver.c Fix cloning of raw, sparse volumes 2015-07-10 08:54:10 +02:00
storage_driver.h storage: Introduce storagePoolLookupByTargetPath 2014-12-02 17:51:57 +01:00