diff options
author | Dave Chinner <dgc@sgi.com> | 2013-04-03 05:11:15 (GMT) |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2013-04-21 19:57:43 (GMT) |
commit | 983d09ffe396ed5d5339a1b9ff994dd0b0f2069f (patch) | |
tree | 42779460b8910c6537bd4d53fa99f23eb5fde830 /fs/xfs/xfs_log_recover.c | |
parent | 77c95bba013089fa868217283eb6d98a05913e53 (diff) | |
download | linux-983d09ffe396ed5d5339a1b9ff994dd0b0f2069f.tar.xz |
xfs: add CRC checks to the AGI
Same set of changes made to the AGF need to be made to the AGI.
This patch has a similar history to the AGF, hence a similar
sign-off chain.
Signed-off-by: Dave Chinner <dgc@sgi.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <dgc@redhat.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_log_recover.c')
-rw-r--r-- | fs/xfs/xfs_log_recover.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c index da2a19e..6778a79 100644 --- a/fs/xfs/xfs_log_recover.c +++ b/fs/xfs/xfs_log_recover.c @@ -1971,6 +1971,14 @@ xlog_recover_do_reg_buffer( } bp->b_ops = &xfs_agfl_buf_ops; break; + case XFS_BLF_AGI_BUF: + if (*(__be32 *)bp->b_addr != cpu_to_be32(XFS_AGI_MAGIC)) { + xfs_warn(mp, "Bad AGI block magic!"); + ASSERT(0); + break; + } + bp->b_ops = &xfs_agi_buf_ops; + break; default: break; } |