From: Darrick J. Wong Date: Wed, 3 Jul 2024 21:22:19 +0000 (-0700) Subject: xfs: scrub the realtime rmapbt X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=0d6e2a4163f2ec4fe09dd1fb0c320e2e88f76014;p=users%2Fhch%2Fxfsprogs.git xfs: scrub the realtime rmapbt Check the realtime reverse mapping btree against the rtbitmap, and modify the rtbitmap scrub to check against the rtrmapbt. Signed-off-by: Darrick J. Wong --- diff --git a/libxfs/xfs_fs.h b/libxfs/xfs_fs.h index 63f0527f2..05bbe6fac 100644 --- a/libxfs/xfs_fs.h +++ b/libxfs/xfs_fs.h @@ -738,9 +738,10 @@ struct xfs_scrub_metadata { #define XFS_SCRUB_TYPE_METAPATH 29 /* metadata directory tree paths */ #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 */ /* Number of scrub subcommands. */ -#define XFS_SCRUB_TYPE_NR 32 +#define XFS_SCRUB_TYPE_NR 33 /* * 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 dc439897c..79875968d 100644 --- a/man/man2/ioctl_xfs_scrub_metadata.2 +++ b/man/man2/ioctl_xfs_scrub_metadata.2 @@ -98,9 +98,13 @@ The realtime allocation group number must be given in must be zero. .PP -.TP +.nf .B XFS_SCRUB_TYPE_RGBITMAP -Examine a given realtime allocation group's free space bitmap. +.fi +.TP +.B XFS_SCRUB_TYPE_RTRMAPBT +Examine a given realtime allocation group's free space bitmap or reverse +mapping 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.