]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: scrub the AGI
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 17 Nov 2017 04:11:32 +0000 (22:11 -0600)
committerEric Sandeen <sandeen@redhat.com>
Fri, 17 Nov 2017 04:11:32 +0000 (22:11 -0600)
Source kernel commit: a12890aebb895951720ff884eab1c99a30645b29

Add a forgotten check to the AGI verifier, then wire up the scrub
infrastructure to check the AGI contents.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_fs.h

index 56743ab51bbf649c674292f8a382d40ab5b30dea..ed0d218b30391d9f25862c39b9062de34f5b0fd3 100644 (file)
@@ -508,9 +508,10 @@ struct xfs_scrub_metadata {
 #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 */
+#define XFS_SCRUB_TYPE_AGI     4       /* AG inode header */
 
 /* Number of scrub subcommands. */
-#define XFS_SCRUB_TYPE_NR      4
+#define XFS_SCRUB_TYPE_NR      5
 
 /* i: Repair this metadata. */
 #define XFS_SCRUB_IFLAG_REPAIR         (1 << 0)