]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - libxfs/xfs_symlink_remote.c
libxfs: modify verifiers to differentiate CRC from other errors
authorDave Chinner <dchinner@redhat.com>
Thu, 6 Mar 2014 23:26:11 +0000 (10:26 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 6 Mar 2014 23:26:11 +0000 (10:26 +1100)
commit459229339028b57df1d9ef2b14ac6af457eb70b7
tree89433a3808567b18535ae548244e4ccccab43778
parent99c1ec967271c4268431f2476005a707e91d7301
libxfs: modify verifiers to differentiate CRC from other errors

[userspace port]

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.

Also, fix the silly bug in xfs_buf_ioerror() that this patch
exposes.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
17 files changed:
include/libxfs.h
libxfs/xfs_alloc.c
libxfs/xfs_alloc_btree.c
libxfs/xfs_attr_leaf.c
libxfs/xfs_attr_remote.c
libxfs/xfs_bmap_btree.c
libxfs/xfs_da_btree.c
libxfs/xfs_dir2_block.c
libxfs/xfs_dir2_data.c
libxfs/xfs_dir2_leaf.c
libxfs/xfs_dir2_node.c
libxfs/xfs_dquot_buf.c
libxfs/xfs_ialloc.c
libxfs/xfs_ialloc_btree.c
libxfs/xfs_inode_buf.c
libxfs/xfs_sb.c
libxfs/xfs_symlink_remote.c