From ba7b281049bb2840f1931f61ba2a3aa3df0ce7b7 Mon Sep 17 00:00:00 2001 From: Boris Burkov Date: Tue, 26 Jul 2022 13:43:25 -0700 Subject: [PATCH] btrfs-progs: add VERITY ro compat flag This compat flag is missing, but is being checked by mount, and could well be present legitimately. Reviewed-by: Sweet Tea Dorminy Reviewed-by: Josef Bacik Signed-off-by: Boris Burkov Signed-off-by: David Sterba --- kernel-shared/ctree.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel-shared/ctree.h b/kernel-shared/ctree.h index fa46a1da..38758dfc 100644 --- a/kernel-shared/ctree.h +++ b/kernel-shared/ctree.h @@ -487,6 +487,7 @@ BUILD_ASSERT(sizeof(struct btrfs_super_block) == BTRFS_SUPER_INFO_SIZE); * tree. */ #define BTRFS_FEATURE_COMPAT_RO_FREE_SPACE_TREE_VALID (1ULL << 1) +#define BTRFS_FEATURE_COMPAT_RO_VERITY (1ULL << 2) #define BTRFS_FEATURE_INCOMPAT_MIXED_BACKREF (1ULL << 0) #define BTRFS_FEATURE_INCOMPAT_DEFAULT_SUBVOL (1ULL << 1) @@ -517,7 +518,8 @@ BUILD_ASSERT(sizeof(struct btrfs_super_block) == BTRFS_SUPER_INFO_SIZE); */ #define BTRFS_FEATURE_COMPAT_RO_SUPP \ (BTRFS_FEATURE_COMPAT_RO_FREE_SPACE_TREE | \ - BTRFS_FEATURE_COMPAT_RO_FREE_SPACE_TREE_VALID) + BTRFS_FEATURE_COMPAT_RO_FREE_SPACE_TREE_VALID | \ + BTRFS_FEATURE_COMPAT_RO_VERITY) #if EXPERIMENTAL #define BTRFS_FEATURE_INCOMPAT_SUPP \