From 74403b0a5bc59d427095febb87844341bcaccd49 Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Tue, 28 May 2024 21:13:25 -0700 Subject: [PATCH] xfs: scrub the metadir path of rt refcount btree files 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 --- libfrog/scrub.c | 5 +++++ libxfs/xfs_fs.h | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libfrog/scrub.c b/libfrog/scrub.c index 9fab0af85..b7493a75e 100644 --- a/libfrog/scrub.c +++ b/libfrog/scrub.c @@ -192,6 +192,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_RTREFCOUNTBT] = { + .name = "rtrefcbt", + .descr = "refcount btree file metadir path", + .group = XFROG_SCRUB_GROUP_RTGROUP, + }, }; /* Invoke the scrub ioctl. Returns zero or negative error code. */ diff --git a/libxfs/xfs_fs.h b/libxfs/xfs_fs.h index 62ac6c0b4..bed9676f9 100644 --- a/libxfs/xfs_fs.h +++ b/libxfs/xfs_fs.h @@ -827,9 +827,10 @@ struct xfs_scrub_vec_head { #define XFS_SCRUB_METAPATH_PROBE (0) /* do we have a metapath scrubber? */ #define XFS_SCRUB_METAPATH_RTDIR (1) /* realtime metadir */ #define XFS_SCRUB_METAPATH_RTRMAPBT (2) /* realtime reverse mapping */ +#define XFS_SCRUB_METAPATH_RTREFCOUNTBT (3) /* realtime refcount */ /* Number of metapath sm_ino values */ -#define XFS_SCRUB_METAPATH_NR (3) +#define XFS_SCRUB_METAPATH_NR (4) /* * ioctl limits -- 2.50.1