Stefan Hajnoczi
61914f8906
qcow2: include LUKS payload overhead in qemu-img measure
...
LUKS encryption reserves clusters for its own payload data. The size of
this area must be included in the qemu-img measure calculation so that
we arrive at the correct minimum required image size.
(Ab)use the qcrypto_block_create() API to determine the payload
overhead. We discard the payload data that qcrypto thinks will be
written to the image.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-id: 20190218104525.23674-2-stefanha@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
2019-02-25 15:11:28 +01:00
..
2018-03-19 14:58:37 -05:00
2019-01-15 18:26:50 -05:00
2019-02-25 15:11:27 +01:00
2019-02-25 15:11:27 +01:00
2018-09-25 17:26:18 +02:00
2019-02-25 15:11:27 +01:00
2019-02-25 15:03:19 +01:00
2019-01-11 15:46:56 +01:00
2018-11-05 15:09:55 +01:00
2019-02-25 15:11:27 +01:00
2018-08-15 12:50:39 +02:00
2018-08-31 16:28:33 +02:00
2019-02-25 15:11:27 +01:00
2018-06-29 14:20:56 +02:00
2019-02-25 15:11:27 +01:00
2019-02-19 17:49:43 -05:00
2016-10-07 14:14:06 +02:00
2018-12-14 11:52:40 +01:00
2019-01-04 11:15:09 +00:00
2018-12-14 11:52:40 +01:00
2019-01-31 00:38:19 +01:00
2019-01-11 15:46:56 +01:00
2019-02-25 15:11:27 +01:00
2019-02-01 13:46:44 +01:00
2018-02-09 13:52:16 +01:00
2019-02-25 15:11:27 +01:00
2019-01-11 15:46:56 +01:00
2018-12-14 11:52:40 +01:00
2019-02-25 15:11:27 +01:00
2019-02-25 15:03:19 +01:00
2019-02-25 15:03:19 +01:00
2019-02-25 15:11:27 +01:00
2019-02-25 15:11:27 +01:00
2019-02-25 15:11:27 +01:00
2019-02-25 15:11:27 +01:00
2018-06-29 14:20:56 +02:00
2018-02-09 05:05:11 +01:00
2019-02-25 15:11:26 +01:00
2019-02-11 14:35:43 -06:00
2018-02-13 17:00:00 +01:00
2019-02-25 15:05:23 +01:00
2019-02-01 13:46:44 +01:00
2019-02-25 15:03:19 +01:00
2019-02-25 15:11:28 +01:00
2019-02-11 14:35:43 -06:00
2019-02-25 15:11:27 +01:00
2018-03-09 15:17:47 +01:00
2017-07-17 11:34:11 +08:00
2017-07-17 11:34:11 +08:00
2018-03-09 15:17:47 +01:00
2019-02-25 15:11:25 +01:00
2017-07-17 11:34:11 +08:00
2019-02-25 15:11:27 +01:00
2019-02-25 15:11:27 +01:00
2019-02-25 15:11:27 +01:00
2019-02-25 15:11:27 +01:00
2019-02-25 15:11:27 +01:00
2019-02-25 15:03:18 +01:00
2019-02-25 15:11:27 +01:00
2018-12-14 11:55:02 +01:00
2019-01-24 10:02:28 +00:00
2019-02-25 15:11:27 +01:00
2019-01-31 00:38:19 +01:00
2019-02-01 13:46:45 +01:00
2018-11-05 15:09:54 +01:00
2019-02-25 15:11:25 +01:00
2018-11-05 15:09:54 +01:00
2019-01-11 15:46:55 +01:00
2019-02-25 15:11:27 +01:00
2019-02-25 15:11:27 +01:00
2019-02-25 15:11:27 +01:00
2019-02-25 15:11:27 +01:00
2018-05-15 16:11:41 +02:00
2018-08-28 18:21:38 +02:00