]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: scrub AGF and AGFL
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: ab9d5dc59fe6157b8035c4b605166b868f678ee4

Check the block references in the AGF and AGFL headers to make sure
they make sense.

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 3fe66c23be789211df29f9c33557e25d331892b5..56743ab51bbf649c674292f8a382d40ab5b30dea 100644 (file)
@@ -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)