Alberto Garcia
2d4b5256cf
qcow2: Fix alignment checks in encrypted images
...
I/O requests to encrypted media should be aligned to the sector size
used by the underlying encryption method, not to BDRV_SECTOR_SIZE.
Fortunately this doesn't break anything at the moment because
both existing QCRYPTO_BLOCK_*_SECTOR_SIZE have the same value as
BDRV_SECTOR_SIZE.
The checks in qcow2_co_preadv_encrypted() are also unnecessary because
they are repeated immediately afterwards in qcow2_co_encdec().
Signed-off-by: Alberto Garcia <berto@igalia.com>
Message-Id: <20200213171646.15876-1-berto@igalia.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2020-02-18 10:53:56 +01:00
..
2019-10-10 10:56:18 +02:00
2019-10-10 10:56:17 +02:00
2020-02-06 13:47:45 +01:00
2019-10-10 10:56:18 +02:00
2020-01-27 17:19:53 +01:00
2020-01-06 13:43:06 +01:00
2019-06-12 13:18:33 +02:00
2019-10-14 17:12:48 +02:00
2019-06-12 13:18:33 +02:00
2019-10-28 12:00:07 +01:00
2019-11-04 09:21:45 +01:00
2019-09-16 14:48:30 +02:00
2019-09-16 14:48:30 +02:00
2019-10-28 12:00:07 +01:00
2019-10-28 11:59:51 +01:00
2019-09-13 12:18:37 +02:00
2019-10-28 12:05:30 +01:00
2019-05-13 08:58:55 +02:00
2019-09-16 15:31:12 +02:00
2019-11-18 16:01:34 -06:00
2019-06-12 13:20:20 +02:00
2018-12-14 11:52:40 +01:00
2019-09-16 14:48:30 +02:00
2019-06-12 13:20:20 +02:00
2020-01-30 20:59:42 +00:00
2019-10-28 12:00:07 +01:00
2020-01-06 13:43:07 +01:00
2019-10-28 12:00:07 +01:00
2020-01-30 20:59:42 +00:00
2020-02-07 16:46:59 +00:00
2019-06-12 13:18:33 +02:00
2020-01-27 17:19:53 +01:00
2020-01-13 16:41:45 +00:00
2020-01-30 20:59:41 +00:00
2020-02-18 10:53:56 +01:00
2019-12-18 08:43:19 +01:00
2019-10-28 12:00:07 +01:00
2019-10-14 17:12:48 +02:00
2019-10-28 11:34:35 +01:00
2019-10-28 14:40:01 +00:00
2018-02-09 05:05:11 +01:00
2019-10-10 10:56:18 +02:00
2020-01-06 13:43:06 +01:00
2019-10-26 15:38:06 +02:00
2020-02-06 13:47:45 +01:00
2020-02-06 13:47:45 +01:00
2020-02-06 13:47:45 +01:00
2020-02-18 10:53:56 +01:00
2020-02-18 10:53:56 +01:00
2019-11-07 14:37:46 +01:00
2019-10-28 12:00:07 +01:00
2019-04-30 15:29:00 +02:00
2017-07-17 11:34:11 +08:00
2017-07-17 11:34:11 +08:00
2019-04-30 15:29:00 +02:00
2019-10-28 12:08:45 +01:00
2019-04-30 15:29:00 +02:00
2019-06-12 13:18:33 +02:00
2019-10-28 12:05:30 +01:00
2019-10-28 12:00:07 +01:00
2019-10-10 10:56:18 +02:00
2019-10-28 12:00:07 +01:00
2019-12-18 08:43:19 +01:00
2019-10-28 12:00:07 +01:00
2019-09-10 08:58:43 +02:00
2020-01-06 13:43:06 +01:00
2019-06-12 13:18:33 +02:00
2020-01-30 20:59:42 +00:00
2019-10-28 12:00:07 +01:00
2019-06-12 13:20:20 +02:00
2019-10-28 12:00:07 +01:00
2019-10-28 12:00:07 +01:00
2019-04-30 15:29:00 +02:00
2019-10-28 12:00:07 +01:00
2019-10-28 12:00:07 +01:00
2019-09-16 14:48:30 +02:00
2019-10-14 17:12:48 +02:00
2019-06-12 13:18:33 +02:00
2018-08-28 18:21:38 +02:00