From: Darrick J. Wong <djwong@xxxxxxxxxx> Add code to scrub realtime refcount btrees. Signed-off-by: Darrick J. Wong <djwong@xxxxxxxxxx> --- libxfs/xfs_fs.h | 3 ++- man/man2/ioctl_xfs_scrub_metadata.2 | 9 +++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/libxfs/xfs_fs.h b/libxfs/xfs_fs.h index 0bbdbfb0a8a..7847da61db2 100644 --- a/libxfs/xfs_fs.h +++ b/libxfs/xfs_fs.h @@ -738,9 +738,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 79875968d1c..e8717b41ccd 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 -.fi -.TP .B XFS_SCRUB_TYPE_RTRMAPBT -Examine a given realtime allocation group's free space bitmap or reverse -mapping btree, respectively. +.fi +.TP +.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.