]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite8cbf39a3ec444157ab9d38fd338bf86f4f519f2
tree7b694c2baa200ac1bf2770d7bdfa4f2a292a2a58
parentf157e1ec110e76e8bdb6d91f84d8abccfe8f9bfe
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