]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
libfrog: enable scrubbing of the realtime rmap
authorDarrick J. Wong <djwong@kernel.org>
Mon, 24 Feb 2025 18:21:57 +0000 (10:21 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 25 Feb 2025 17:16:00 +0000 (09:16 -0800)
Add a new entry so that we can scrub the rtrmapbt and its metadata
directory tree path too.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
libfrog/scrub.c
scrub/repair.c

index 129f592e108ae1de216203c14d3d08231fce6864..11d467666d6b5ae8c2b0dbd94507aee60763eaf6 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] = {
@@ -207,6 +212,11 @@ const struct xfrog_scrub_descr xfrog_metapaths[XFS_SCRUB_METAPATH_NR] = {
                .descr  = "project quota file",
                .group  = XFROG_SCRUB_GROUP_FS,
        },
+       [XFS_SCRUB_METAPATH_RTRMAPBT] = {
+               .name   = "rtrmapbt",
+               .descr  = "rtgroup rmap btree",
+               .group  = XFROG_SCRUB_GROUP_RTGROUP,
+       },
 };
 
 /* Invoke the scrub ioctl.  Returns zero or negative error code. */
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: