From: Darrick J. Wong <djwong@xxxxxxxxxx> 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@xxxxxxxxxx> --- 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 290ba0fb8bf..97b3d533910 100644 --- a/libfrog/scrub.c +++ b/libfrog/scrub.c @@ -207,6 +207,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 7847da61db2..4159e96d01a 100644 --- a/libxfs/xfs_fs.h +++ b/libxfs/xfs_fs.h @@ -806,9 +806,10 @@ struct xfs_scrub_metadata { #define XFS_SCRUB_METAPATH_GRPQUOTA 3 #define XFS_SCRUB_METAPATH_PRJQUOTA 4 #define XFS_SCRUB_METAPATH_RTRMAPBT 5 +#define XFS_SCRUB_METAPATH_RTREFCBT 6 /* Number of metapath sm_ino values */ -#define XFS_SCRUB_METAPATH_NR 6 +#define XFS_SCRUB_METAPATH_NR 7 /* * ioctl limits