]> www.infradead.org Git - users/hch/xfsprogs.git/commitdiff
xfs: scrub the metadir path of rt refcount btree files
authorDarrick J. Wong <djwong@kernel.org>
Wed, 3 Jul 2024 21:22:32 +0000 (14:22 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 9 Jul 2024 22:37:23 +0000 (15:37 -0700)
Add a new XFS_SCRUB_METAPATH subtype so that we can scrub the metadata
directory tree path to the refcount btree file for each rt group.

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

index 82abfca456ab9573526e6d744b576cea9913268f..ce23bccda7132f1578a2e18ace9e3fce4d53fb8d 100644 (file)
@@ -187,6 +187,11 @@ const struct xfrog_scrub_descr xfrog_metapaths[XFS_SCRUB_METAPATH_NR] = {
                .descr  = "rmap btree file metadir path",
                .group  = XFROG_SCRUB_GROUP_RTGROUP,
        },
+       [XFS_SCRUB_METAPATH_RTREFCBT]   = {
+               .name   = "rtrefcbt",
+               .descr  = "refcount btree file metadir path",
+               .group  = XFROG_SCRUB_GROUP_RTGROUP,
+       },
 };
 
 /* Invoke the scrub ioctl.  Returns zero or negative error code. */
index ec07f3294b88255ac4fccc949af03c3b7caf1283..087cf91c60d89eaabb3da3d76cecd382b7c381f7 100644 (file)
@@ -826,9 +826,10 @@ struct xfs_scrub_vec_head {
  */
 #define XFS_SCRUB_METAPATH_PROBE       (0)  /* do we have a metapath scrubber? */
 #define XFS_SCRUB_METAPATH_RTRMAPBT    (1)  /* realtime reverse mapping */
+#define XFS_SCRUB_METAPATH_RTREFCBT    (2)  /* realtime refcount */
 
 /* Number of metapath sm_ino values */
-#define XFS_SCRUB_METAPATH_NR          (2)
+#define XFS_SCRUB_METAPATH_NR          (3)
 
 /*
  * ioctl limits