diff --git a/tests/api_test.h b/tests/api_test.h index 9c0bf7b9..cbf34b2f 100644 --- a/tests/api_test.h +++ b/tests/api_test.h @@ -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_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_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 */ int loop_device(const char *loop); diff --git a/tests/test_utils.c b/tests/test_utils.c index a284c1af..e98851d8 100644 --- a/tests/test_utils.c +++ b/tests/test_utils.c @@ -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)) 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)),