dm crypt: fix large block integrity support
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 18 Apr 2017 20:51:54 +0000 (16:51 -0400)
committerMike Snitzer <snitzer@redhat.com>
Mon, 24 Apr 2017 16:04:34 +0000 (12:04 -0400)
commit583fe7474c05ee5523e14ef791ea59604cd846dc
tree0d82a5b361093c3ddc3c791d08494334338210ec
parent9d609f85b7eb96697ae22ad1d47a3a3920174ba8
dm crypt: fix large block integrity support

Previously, dm-crypt could use blocks composed of multiple 512b sectors
but it created integrity profile for each 512b sector (it padded it with
zeroes).  Fix dm-crypt so that the integrity profile is sent for each
block not each sector.

The user must use the same block size in the DM crypt and integrity
targets.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-crypt.c