Detect dm-verity in kernel.

This commit is contained in:
Milan Broz
2012-06-07 12:32:06 +02:00
parent 4b0b82adc5
commit 0e79728f86
4 changed files with 20 additions and 1 deletions

View File

@@ -35,6 +35,7 @@ struct crypt_params_verity;
#define DM_SECURE_SUPPORTED (1 << 2) /* wipe (secure) buffer flag */
#define DM_PLAIN64_SUPPORTED (1 << 3) /* plain64 IV */
#define DM_DISCARDS_SUPPORTED (1 << 4) /* discards/TRIM option is supported */
#define DM_VERITY_SUPPORTED (1 << 5) /* dm-verity target supported */
uint32_t dm_flags(void);
#define DM_ACTIVE_DEVICE (1 << 0)