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

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

index 11d467666d6b5ae8c2b0dbd94507aee60763eaf6..9ffe4698e864aba395c4672046c4dfca6807e8ec 100644 (file)
@@ -169,6 +169,11 @@ const struct xfrog_scrub_descr xfrog_scrubbers[XFS_SCRUB_TYPE_NR] = {
                .descr  = "realtime reverse mapping btree",
                .group  = XFROG_SCRUB_GROUP_RTGROUP,
        },
+       [XFS_SCRUB_TYPE_RTREFCBT] = {
+               .name   = "rtrefcountbt",
+               .descr  = "realtime reference count btree",
+               .group  = XFROG_SCRUB_GROUP_RTGROUP,
+       },
 };
 
 const struct xfrog_scrub_descr xfrog_metapaths[XFS_SCRUB_METAPATH_NR] = {
@@ -217,6 +222,11 @@ const struct xfrog_scrub_descr xfrog_metapaths[XFS_SCRUB_METAPATH_NR] = {
                .descr  = "rtgroup rmap btree",
                .group  = XFROG_SCRUB_GROUP_RTGROUP,
        },
+       [XFS_SCRUB_METAPATH_RTREFCOUNTBT] = {
+               .name   = "rtrefcbt",
+               .descr  = "rtgroup refcount btree",
+               .group  = XFROG_SCRUB_GROUP_RTGROUP,
+       },
 };
 
 /* Invoke the scrub ioctl.  Returns zero or negative error code. */
index e6906cbd37d0b32936ef23dc5c27bdef8605aeff..b2c4232fe8cea1e733af9a1a247effa5b43f1f54 100644 (file)
@@ -548,6 +548,7 @@ repair_item_difficulty(
                case XFS_SCRUB_TYPE_RTBITMAP:
                case XFS_SCRUB_TYPE_RTSUM:
                case XFS_SCRUB_TYPE_RGSUPER:
+               case XFS_SCRUB_TYPE_RTREFCBT:
                        ret |= REPAIR_DIFFICULTY_PRIMARY;
                        break;
                }