OSDN Git Service

qcow2: Get the request alignment for encrypted images from QCryptoBlock
authorAlberto Garcia <berto@igalia.com>
Thu, 11 Oct 2018 10:58:02 +0000 (13:58 +0300)
committerKevin Wolf <kwolf@redhat.com>
Mon, 5 Nov 2018 14:09:54 +0000 (15:09 +0100)
commit6f8f015c0cd9f3ea44de4d73144db98beef97e3c
tree2dbf1b1a90417faf28f126b39c870baf0935faf4
parent07809a7fa8bad7f6255a4955e1520ad09ad738a4
qcow2: Get the request alignment for encrypted images from QCryptoBlock

This doesn't have any practical effect at the moment because the
values of BDRV_SECTOR_SIZE, QCRYPTO_BLOCK_LUKS_SECTOR_SIZE and
QCRYPTO_BLOCK_QCOW_SECTOR_SIZE are all the same (512 bytes), but
future encryption methods could have different requirements.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2.c