dm integrity: recalculate checksums on creation
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 3 Jul 2018 18:13:33 +0000 (20:13 +0200)
committerMike Snitzer <snitzer@redhat.com>
Fri, 27 Jul 2018 19:24:27 +0000 (15:24 -0400)
commita3fcf7253139609bf9ff901fbf955fba047e75dd
tree4e69f184fecf442c1a52fe192b479ba7eaac9947
parent747829a8e6c6a65e096ce8dd79506cbcf83951ad
dm integrity: recalculate checksums on creation

When using external metadata device and internal hash, recalculate the
checksums when the device is created - so that dm-integrity doesn't
have to overwrite the device.  The superblock stores the last position
when the recalculation ended, so that it is properly restarted.

Integrity tags that haven't been recalculated yet are ignored.

Also bump the target version.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Documentation/device-mapper/dm-integrity.txt
drivers/md/dm-integrity.c