libvirt/src/storage
John Ferlan b7d44f450c storage: Fix capacity value for LUKS encrypted volumes
https://bugzilla.redhat.com/show_bug.cgi?id=1371892

The 'capacity' value (e.g. guest logical size) for a LUKS volume is
smaller than the 'physical' value of the file in the file system, so
we need to account for that.

When peeking at the encryption information about the volume add a fetch
of the payload_offset which is described as the offset to the start of
the volume data (in 512 byte sectors) in QEMU's QCryptoBlockLUKSHeader.

Then adjust the ->capacity appropriately when we determine that the
volume target encryption has a payload_offset value.
2017-04-03 16:15:29 -04:00
..
parthelper.c storage: Fix virStorageBackendDiskDeleteVol for device mapper 2016-05-11 09:23:31 -04:00
storage_backend_disk.c util: Rename virFileWaitForDevices 2017-03-15 21:17:47 -04:00
storage_backend_disk.h storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_fs.c storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_fs.h storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_gluster.c storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_gluster.h storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_iscsi.c util: Rename virFileWaitForDevices 2017-03-15 21:17:47 -04:00
storage_backend_iscsi.h storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_logical.c storage: Fix build on i686 2017-03-28 12:53:56 +02:00
storage_backend_logical.h storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_mpath.c util: Rename virFileWaitForDevices 2017-03-15 21:17:47 -04:00
storage_backend_mpath.h storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_rbd.c storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_rbd.h storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_scsi.c conf: Return the vHBA name from virNodeDeviceCreateVport 2017-03-15 21:17:47 -04:00
storage_backend_scsi.h storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_sheepdog_priv.h storage: sheepdog: Split out functions required for tests 2017-01-19 09:25:51 +01:00
storage_backend_sheepdog.c storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_sheepdog.h storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_vstorage.c storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_vstorage.h storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_zfs.c storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_zfs.h storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend.c storage: backend: Use correct stringifier for pool type 2017-04-03 08:42:09 +02:00
storage_backend.h conf: Introduce virstorageobj 2017-03-17 14:40:09 -04:00
storage_driver.c storage: driver: Remove unavailable transient pools after restart 2017-04-03 08:42:09 +02:00
storage_driver.h conf: Introduce virstorageobj 2017-03-17 14:40:09 -04:00
storage_util.c storage: Fix capacity value for LUKS encrypted volumes 2017-04-03 16:15:29 -04:00
storage_util.h conf: Introduce virstorageobj 2017-03-17 14:40:09 -04:00