From 44f5e26dcab12cb3a2b5f29e66ac01d26d1a1cb7 Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Wed, 3 Jul 2024 14:22:32 -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 82abfca45..ce23bccda 100644 --- a/libfrog/scrub.c +++ b/libfrog/scrub.c @@ -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. */ diff --git a/libxfs/xfs_fs.h b/libxfs/xfs_fs.h index ec07f3294..087cf91c6 100644 --- a/libxfs/xfs_fs.h +++ b/libxfs/xfs_fs.h @@ -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 -- 2.50.1