diff options
author | Christoph Hellwig <hch@lst.de> | 2013-04-03 01:11:14 -0400 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2013-04-21 15:55:34 -0400 |
commit | 77c95bba013089fa868217283eb6d98a05913e53 (patch) | |
tree | 7b694c2baa200ac1bf2770d7bdfa4f2a292a2a58 /fs/xfs/xfs_buf_item.h | |
parent | 4e0e6040c4052aff15a494ac05778f4086d24c33 (diff) |
xfs: add CRC checks to the AGFL
Add CRC checks, location information and a magic number to the AGFL.
Previously the AGFL was just a block containing nothing but the
free block pointers. The new AGFL has a real header with the usual
boilerplate instead, so that we can verify it's not corrupted and
written into the right place.
[dchinner@redhat.com] Added LSN field, reworked significantly to fit
into new verifier structure and growfs structure, enabled full
verifier functionality now there is a header to verify and we can
guarantee an initialised AGFL.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_buf_item.h')
-rw-r--r-- | fs/xfs/xfs_buf_item.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/xfs/xfs_buf_item.h b/fs/xfs/xfs_buf_item.h index 76bd7a167a70..067d5f0fc233 100644 --- a/fs/xfs/xfs_buf_item.h +++ b/fs/xfs/xfs_buf_item.h | |||
@@ -46,13 +46,15 @@ extern kmem_zone_t *xfs_buf_item_zone; | |||
46 | */ | 46 | */ |
47 | #define XFS_BLF_BTREE_BUF (1<<5) | 47 | #define XFS_BLF_BTREE_BUF (1<<5) |
48 | #define XFS_BLF_AGF_BUF (1<<6) | 48 | #define XFS_BLF_AGF_BUF (1<<6) |
49 | #define XFS_BLF_AGFL_BUF (1<<7) | ||
49 | 50 | ||
50 | #define XFS_BLF_TYPE_MASK \ | 51 | #define XFS_BLF_TYPE_MASK \ |
51 | (XFS_BLF_UDQUOT_BUF | \ | 52 | (XFS_BLF_UDQUOT_BUF | \ |
52 | XFS_BLF_PDQUOT_BUF | \ | 53 | XFS_BLF_PDQUOT_BUF | \ |
53 | XFS_BLF_GDQUOT_BUF | \ | 54 | XFS_BLF_GDQUOT_BUF | \ |
54 | XFS_BLF_BTREE_BUF | \ | 55 | XFS_BLF_BTREE_BUF | \ |
55 | XFS_BLF_AGF_BUF) | 56 | XFS_BLF_AGF_BUF | \ |
57 | XFS_BLF_AGFL_BUF) | ||
56 | 58 | ||
57 | #define XFS_BLF_CHUNK 128 | 59 | #define XFS_BLF_CHUNK 128 |
58 | #define XFS_BLF_SHIFT 7 | 60 | #define XFS_BLF_SHIFT 7 |