xfs: add CRC checks to the AGFL
authorChristoph Hellwig <hch@lst.de>
Wed, 3 Apr 2013 05:11:14 +0000 (16:11 +1100)
committerBen Myers <bpm@sgi.com>
Sun, 21 Apr 2013 19:55:34 +0000 (14:55 -0500)
commit77c95bba013089fa868217283eb6d98a05913e53
tree7b694c2baa200ac1bf2770d7bdfa4f2a292a2a58
parent4e0e6040c4052aff15a494ac05778f4086d24c33
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>
fs/xfs/xfs_ag.h
fs/xfs/xfs_alloc.c
fs/xfs/xfs_buf_item.h
fs/xfs/xfs_fsops.c
fs/xfs/xfs_log_recover.c