]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita344808c6f0a15fde0b519209797e82d2f514369
tree4e69f184fecf442c1a52fe192b479ba7eaac9947
parent08d61a5aee59fed6a8cc4fc101f0fb65b5c75319
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