xfs: modify verifiers to differentiate CRC from other errors
authorEric Sandeen <sandeen@sandeen.net>
Thu, 27 Feb 2014 04:23:10 +0000 (15:23 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 27 Feb 2014 04:23:10 +0000 (15:23 +1100)
commitce5028cfe3ca48695b6a128638fe224426d37ebe
treee6b62cc91ec0fb74343a3e231d11dd16b55be2b5
parentdb9355c296eb71271bb3807ad4a9d43f6b3c35d3
xfs: modify verifiers to differentiate CRC from other errors

Modify all read & write verifiers to differentiate
between CRC errors and other inconsistencies.

This sets the appropriate error number on bp->b_error,
and then calls xfs_verifier_error() if something went
wrong.  That function will issue the appropriate message
to the user.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
16 files changed:
fs/xfs/xfs_alloc.c
fs/xfs/xfs_alloc_btree.c
fs/xfs/xfs_attr_leaf.c
fs/xfs/xfs_attr_remote.c
fs/xfs/xfs_bmap_btree.c
fs/xfs/xfs_da_btree.c
fs/xfs/xfs_dir2_block.c
fs/xfs/xfs_dir2_data.c
fs/xfs/xfs_dir2_leaf.c
fs/xfs/xfs_dir2_node.c
fs/xfs/xfs_dquot_buf.c
fs/xfs/xfs_ialloc.c
fs/xfs/xfs_ialloc_btree.c
fs/xfs/xfs_inode_buf.c
fs/xfs/xfs_sb.c
fs/xfs/xfs_symlink_remote.c