diff options
author | Darrick J. Wong | 2017-10-18 06:37:39 +0200 |
---|---|---|
committer | Darrick J. Wong | 2017-10-27 00:38:24 +0200 |
commit | ab9d5dc59fe6157b8035c4b605166b868f678ee4 (patch) | |
tree | 4890f77ec080d9eeba75a27a82cad4acb1790b9b /fs/xfs/libxfs | |
parent | xfs: scrub the secondary superblocks (diff) | |
download | kernel-qcow2-linux-ab9d5dc59fe6157b8035c4b605166b868f678ee4.tar.gz kernel-qcow2-linux-ab9d5dc59fe6157b8035c4b605166b868f678ee4.tar.xz kernel-qcow2-linux-ab9d5dc59fe6157b8035c4b605166b868f678ee4.zip |
xfs: scrub AGF and AGFL
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>
Diffstat (limited to 'fs/xfs/libxfs')
-rw-r--r-- | fs/xfs/libxfs/xfs_fs.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_fs.h b/fs/xfs/libxfs/xfs_fs.h index 8543cbba6a10..aeb2a668337c 100644 --- a/fs/xfs/libxfs/xfs_fs.h +++ b/fs/xfs/libxfs/xfs_fs.h @@ -485,9 +485,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) |