Re: [PATCH] qcow2: Fix alignment checks in encrypted images

2020-02-14 Thread Kevin Wolf
Am 13.02.2020 um 18:16 hat Alberto Garcia geschrieben: > 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_S

Re: [PATCH] qcow2: Fix alignment checks in encrypted images

2020-02-13 Thread Daniel P . Berrangé
On Thu, Feb 13, 2020 at 06:16:46PM +0100, Alberto Garcia wrote: > 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_*

[PATCH] qcow2: Fix alignment checks in encrypted images

2020-02-13 Thread Alberto Garcia
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 qco