]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: scrub the realtime refcount btree
authorDarrick J. Wong <djwong@kernel.org>
Mon, 24 Feb 2025 18:21:55 +0000 (10:21 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 25 Feb 2025 17:15:59 +0000 (09:15 -0800)
Source kernel commit: c27929670de144ec76a0dab2f3a168cb4897b314

Add code to scrub realtime refcount btrees.  Similar to the refcount
btree checking code for the data device, we walk the rmap btree for each
refcount record to confirm that the reference counts are correct.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
libxfs/xfs_fs.h

index ea9e58a89d92d3260fb0e10bedcc4cdd8603d487..a4bd6a39c6ba710e6e96d1030c8569f5ffc89844 100644 (file)
@@ -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_RTRMAPBT        31      /* rtgroup reverse mapping btree */
+#define XFS_SCRUB_TYPE_RTREFCBT        32      /* realtime reference count 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.