From: Darrick J. Wong Date: Fri, 17 Nov 2017 04:11:32 +0000 (-0600) Subject: xfs: scrub rmap btrees X-Git-Tag: v4.15.0-rc1~143^2~63 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d21c4120bec6f2291cd4220cb6d150932d12b08b;p=thirdparty%2Fxfsprogs-dev.git xfs: scrub rmap btrees Source kernel commit: c7e693d9836c003150fef80be40a06e1f2e65d0c Check the reverse mapping records to make sure that the contents make sense. Signed-off-by: Darrick J. Wong Reviewed-by: Dave Chinner Signed-off-by: Eric Sandeen --- diff --git a/libxfs/xfs_fs.h b/libxfs/xfs_fs.h index 728452c53..9b5c002ff 100644 --- a/libxfs/xfs_fs.h +++ b/libxfs/xfs_fs.h @@ -513,9 +513,10 @@ struct xfs_scrub_metadata { #define XFS_SCRUB_TYPE_CNTBT 6 /* freesp by length btree */ #define XFS_SCRUB_TYPE_INOBT 7 /* inode btree */ #define XFS_SCRUB_TYPE_FINOBT 8 /* free inode btree */ +#define XFS_SCRUB_TYPE_RMAPBT 9 /* reverse mapping btree */ /* Number of scrub subcommands. */ -#define XFS_SCRUB_TYPE_NR 9 +#define XFS_SCRUB_TYPE_NR 10 /* i: Repair this metadata. */ #define XFS_SCRUB_IFLAG_REPAIR (1 << 0)