integrity: support detached data device.

Since the kernel 4.18 there is a possibility to speficy external
data device for dm-integrity that stores all integrity tags.

The new option --data-device in integritysetup uses this feature.
This commit is contained in:
Milan Broz
2018-11-07 16:46:20 +01:00
parent d06defd885
commit 316ec5b398
7 changed files with 130 additions and 30 deletions

View File

@@ -122,6 +122,8 @@ struct crypt_dm_active_device {
const char *journal_crypt;
struct volume_key *journal_crypt_key;
struct device *meta_device;
} integrity;
} u;
};