xfs: add CRC checks to the AGF
authorDave Chinner <dchinner@redhat.com>
Wed, 3 Apr 2013 05:11:13 +0000 (16:11 +1100)
committerBen Myers <bpm@sgi.com>
Sun, 21 Apr 2013 19:54:46 +0000 (14:54 -0500)
commit4e0e6040c4052aff15a494ac05778f4086d24c33
tree6116acb302eb4be87e0193cb7476812a4cbddaac
parentee1a47ab0e77600fcbdf1c87d461bd8f3f63150d
xfs: add CRC checks to the AGF

The AGF already has some self identifying fields (e.g. the sequence
number) so we only need to add the uuid to it to identify the
filesystem it belongs to. The location is fixed based on the
sequence number, so there's no need to add a block number, either.

Hence the only additional fields are the CRC and LSN fields. These
are unlogged, so place some space between the end of the logged
fields and them so that future expansion of the AGF for logged
fields can be placed adjacent to the existing logged fields and
hence not complicate the field-derived range based logging we
currently have.

Based originally on a patch from myself, modified further by
Christoph Hellwig and then modified again to fit into the
verifier structure with additional fields by myself. The multiple
signed-off-by tags indicate the age and history of this patch.

Signed-off-by: Dave Chinner <dgc@sgi.com>
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
This page took 0.02821 seconds and 5 git commands to generate.