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
..
2016-06-16 06:17:58 -04:00
2016-11-23 12:08:15 -05:00
2016-11-23 12:08:15 -05:00
2016-02-11 11:35:02 +01:00
2015-07-10 11:47:13 +02:00
2016-06-16 13:09:19 -04:00
2017-01-25 09:18:49 +01:00
2017-01-04 12:47:01 +01:00
2016-04-20 12:46:48 +02:00
2016-08-02 14:20:31 +02:00
2016-08-02 14:20:31 +02:00
2016-10-13 17:58:56 +08:00
2016-03-18 09:43:45 +01:00
2016-07-28 08:27:13 -04:00
2016-07-28 08:27:13 -04:00
2015-04-02 16:05:32 +02:00
2016-12-06 13:33:18 +01:00
2017-03-27 21:59:39 +04:00
2017-03-27 15:39:35 +02:00
2015-04-15 16:43:28 +02:00
2017-03-22 09:01:32 +01:00
2017-03-22 09:01:32 +01:00
2017-03-25 20:48:24 +04:00
2015-03-13 15:31:33 +01:00
2016-04-06 20:27:09 -04:00
2016-11-23 12:08:15 -05:00
2016-02-05 16:11:50 +01:00
2015-03-25 10:00:53 +01:00
2016-11-23 12:08:15 -05:00
2016-12-15 09:25:16 +01:00
2016-12-15 09:25:16 +01:00
2017-03-15 21:17:47 -04:00
2017-03-15 21:17:47 -04:00
2016-12-06 13:33:18 +01:00