mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-12 11:20:10 +01:00
Sync libdevmapper flags in tests.
This commit is contained in:
@@ -131,6 +131,8 @@ void xlog(const char *msg, const char *tst, const char *func, int line, const ch
|
|||||||
#define T_DM_INTEGRITY_FIX_HMAC_SUPPORTED (1 << 26) /* hmac covers also superblock */
|
#define T_DM_INTEGRITY_FIX_HMAC_SUPPORTED (1 << 26) /* hmac covers also superblock */
|
||||||
#define T_DM_INTEGRITY_RESET_RECALC_SUPPORTED (1 << 27) /* dm-integrity automatic recalculation supported */
|
#define T_DM_INTEGRITY_RESET_RECALC_SUPPORTED (1 << 27) /* dm-integrity automatic recalculation supported */
|
||||||
#define T_DM_VERITY_TASKLETS_SUPPORTED (1 << 28) /* dm-verity tasklets supported */
|
#define T_DM_VERITY_TASKLETS_SUPPORTED (1 << 28) /* dm-verity tasklets supported */
|
||||||
|
#define T_DM_CRYPT_HIGH_PRIORITY_SUPPORTED (1 << 29) /* dm-crypt high priority workqueue flag supported */
|
||||||
|
#define T_DM_CRYPT_INTEGRITY_KEY_SIZE_OPT_SUPPORTED (1 << 30) /* dm-crypt support for integrity_key_size option */
|
||||||
|
|
||||||
/* loop helpers */
|
/* loop helpers */
|
||||||
int loop_device(const char *loop);
|
int loop_device(const char *loop);
|
||||||
|
|||||||
@@ -555,6 +555,12 @@ static void t_dm_set_crypt_compat(const char *dm_version, unsigned crypt_maj,
|
|||||||
|
|
||||||
if (t_dm_satisfies_version(1, 22, 0, crypt_maj, crypt_min, crypt_patch))
|
if (t_dm_satisfies_version(1, 22, 0, crypt_maj, crypt_min, crypt_patch))
|
||||||
t_dm_crypt_flags |= T_DM_CRYPT_NO_WORKQUEUE_SUPPORTED;
|
t_dm_crypt_flags |= T_DM_CRYPT_NO_WORKQUEUE_SUPPORTED;
|
||||||
|
|
||||||
|
if (t_dm_satisfies_version(1, 26, 0, crypt_maj, crypt_min, crypt_patch))
|
||||||
|
t_dm_crypt_flags |= T_DM_CRYPT_HIGH_PRIORITY_SUPPORTED;
|
||||||
|
|
||||||
|
if (t_dm_satisfies_version(1, 28, 0, crypt_maj, crypt_min, crypt_patch))
|
||||||
|
t_dm_crypt_flags |= T_DM_CRYPT_INTEGRITY_KEY_SIZE_OPT_SUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void t_dm_set_verity_compat(const char *dm_version __attribute__((unused)),
|
static void t_dm_set_verity_compat(const char *dm_version __attribute__((unused)),
|
||||||
|
|||||||
Reference in New Issue
Block a user