From 67f3131cfb796a334c0c4600b2f091f743e65e5d Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Wed, 3 Jul 2024 14:22:31 -0700 Subject: [PATCH] xfs: scrub the realtime refcount btree Add code to scrub realtime refcount btrees. Signed-off-by: Darrick J. Wong --- libxfs/xfs_fs.h | 3 ++- man/man2/ioctl_xfs_scrub_metadata.2 | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/libxfs/xfs_fs.h b/libxfs/xfs_fs.h index 5351a253c..ec07f3294 100644 --- a/libxfs/xfs_fs.h +++ b/libxfs/xfs_fs.h @@ -739,9 +739,10 @@ struct xfs_scrub_metadata { #define XFS_SCRUB_TYPE_RGSUPER 30 /* realtime superblock */ #define XFS_SCRUB_TYPE_RGBITMAP 31 /* realtime group bitmap */ #define XFS_SCRUB_TYPE_RTRMAPBT 32 /* rtgroup reverse mapping btree */ +#define XFS_SCRUB_TYPE_RTREFCBT 33 /* realtime reference count btree */ /* Number of scrub subcommands. */ -#define XFS_SCRUB_TYPE_NR 33 +#define XFS_SCRUB_TYPE_NR 34 /* * This special type code only applies to the vectored scrub implementation. diff --git a/man/man2/ioctl_xfs_scrub_metadata.2 b/man/man2/ioctl_xfs_scrub_metadata.2 index 79875968d..e8717b41c 100644 --- a/man/man2/ioctl_xfs_scrub_metadata.2 +++ b/man/man2/ioctl_xfs_scrub_metadata.2 @@ -100,11 +100,12 @@ must be zero. .PP .nf .B XFS_SCRUB_TYPE_RGBITMAP +.B XFS_SCRUB_TYPE_RTRMAPBT .fi .TP -.B XFS_SCRUB_TYPE_RTRMAPBT -Examine a given realtime allocation group's free space bitmap or reverse -mapping btree, respectively. +.B XFS_SCRUB_TYPE_RTREFCBT +Examine a given realtime allocation group's free space bitmap, reverse +mapping btree, or reference count btree, respectively. Records are checked for obviously incorrect values and cross-referenced with other allocation group metadata records to ensure that there are no conflicts. -- 2.50.1