From: Darrick J. Wong Date: Fri, 17 Nov 2017 04:11:32 +0000 (-0600) Subject: xfs: scrub free space btrees X-Git-Tag: v4.15.0-rc1~143^2~65 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1b07bd7ac0ae92631b7eeda7ac623d7858f1f6c7;p=thirdparty%2Fxfsprogs-dev.git xfs: scrub free space btrees Source kernel commit: efa7a99ce1f8615aca7b0ff3122a1ae14e4d1cdc Check the extent records free space btrees to ensure that the values look sane. 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 ed0d218b3..5fc371fc5 100644 --- a/libxfs/xfs_fs.h +++ b/libxfs/xfs_fs.h @@ -509,9 +509,11 @@ struct xfs_scrub_metadata { #define XFS_SCRUB_TYPE_AGF 2 /* AG free header */ #define XFS_SCRUB_TYPE_AGFL 3 /* AG free list */ #define XFS_SCRUB_TYPE_AGI 4 /* AG inode header */ +#define XFS_SCRUB_TYPE_BNOBT 5 /* freesp by block btree */ +#define XFS_SCRUB_TYPE_CNTBT 6 /* freesp by length btree */ /* Number of scrub subcommands. */ -#define XFS_SCRUB_TYPE_NR 5 +#define XFS_SCRUB_TYPE_NR 7 /* i: Repair this metadata. */ #define XFS_SCRUB_IFLAG_REPAIR (1 << 0)