]> www.infradead.org Git - users/hch/xfsprogs.git/commitdiff
libfrog: enable scrubbing of the realtime rmap
authorDarrick J. Wong <djwong@kernel.org>
Fri, 9 Aug 2024 12:13:19 +0000 (14:13 +0200)
committerChristoph Hellwig <hch@lst.de>
Sun, 11 Aug 2024 06:35:55 +0000 (08:35 +0200)
Add a new entry so that we can scrub the rtrmapbt.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
libfrog/scrub.c
scrub/repair.c

index f4c6d7c38dbfd5e8c3c52cc46ce6dea598fb5379..883153a631b42635586fb9b12a2b6a4c849f53a4 100644 (file)
@@ -164,6 +164,11 @@ const struct xfrog_scrub_descr xfrog_scrubbers[XFS_SCRUB_TYPE_NR] = {
                .descr  = "realtime group superblock",
                .group  = XFROG_SCRUB_GROUP_RTGROUP,
        },
+       [XFS_SCRUB_TYPE_RTRMAPBT] = {
+               .name   = "rtrmapbt",
+               .descr  = "realtime reverse mapping btree",
+               .group  = XFROG_SCRUB_GROUP_RTGROUP,
+       },
 };
 
 const struct xfrog_scrub_descr xfrog_metapaths[XFS_SCRUB_METAPATH_NR] = {
index c8cdb98de5457ba884cef4521d87eb0f09a3724e..e6906cbd37d0b32936ef23dc5c27bdef8605aeff 100644 (file)
@@ -533,6 +533,7 @@ repair_item_difficulty(
 
                switch (scrub_type) {
                case XFS_SCRUB_TYPE_RMAPBT:
+               case XFS_SCRUB_TYPE_RTRMAPBT:
                        ret |= REPAIR_DIFFICULTY_SECONDARY;
                        break;
                case XFS_SCRUB_TYPE_SB: