mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-12 03:10:08 +01:00
Workaround for dm-integrity kernel table bug.
Some kernels show invalid dm-integrity table if suberblock contains "recalculate" bit. We can workaround that by setting recalculate option in table (kernel uses bits from superblock anyway), so the table displayed is always correct. Fixes: #538
This commit is contained in:
@@ -2156,7 +2156,7 @@ int LUKS2_activate(struct crypt_device *cd,
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
r = INTEGRITY_create_dmd_device(cd, NULL, NULL, NULL, NULL, &dmdi, dmd.flags);
|
||||
r = INTEGRITY_create_dmd_device(cd, NULL, NULL, NULL, NULL, &dmdi, dmd.flags, 0);
|
||||
if (r)
|
||||
return r;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user