From: Darrick J. Wong Date: Fri, 17 Nov 2017 04:11:32 +0000 (-0600) Subject: xfs: scrub AGF and AGFL X-Git-Tag: v4.15.0-rc1~143^2~67 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6e1f78ed6c4f43ff5fd33de7df55846edf85f14;p=thirdparty%2Fxfsprogs-dev.git xfs: scrub AGF and AGFL Source kernel commit: ab9d5dc59fe6157b8035c4b605166b868f678ee4 Check the block references in the AGF and AGFL headers to make sure they 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 3fe66c23b..56743ab51 100644 --- a/libxfs/xfs_fs.h +++ b/libxfs/xfs_fs.h @@ -506,9 +506,11 @@ struct xfs_scrub_metadata { /* Scrub subcommands. */ #define XFS_SCRUB_TYPE_PROBE 0 /* presence test ioctl */ #define XFS_SCRUB_TYPE_SB 1 /* superblock */ +#define XFS_SCRUB_TYPE_AGF 2 /* AG free header */ +#define XFS_SCRUB_TYPE_AGFL 3 /* AG free list */ /* Number of scrub subcommands. */ -#define XFS_SCRUB_TYPE_NR 2 +#define XFS_SCRUB_TYPE_NR 4 /* i: Repair this metadata. */ #define XFS_SCRUB_IFLAG_REPAIR (1 << 0)