]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: don't leak EFSBADCRC to userspace
authorDave Chinner <dchinner@redhat.com>
Fri, 7 Mar 2014 05:19:14 +0000 (16:19 +1100)
committerDave Chinner <david@fromorbit.com>
Fri, 7 Mar 2014 05:19:14 +0000 (16:19 +1100)
commit1c44c7942ddc0791808d606c642d6c97d1aa092c
treeac44f40e109615cfda93e22fb79e8953f842393d
parented4c0e42e851d5178cd0d1dc05de408325576e1c
xfs: don't leak EFSBADCRC to userspace

While the verifier routines may return EFSBADCRC when a buffer has
a bad CRC, we need to translate that to EFSCORRUPTED so that the
higher layers treat the error appropriately and we return a
consistent error to userspace. This fixes a xfs/005 regression.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_mount.c
fs/xfs/xfs_symlink.c
fs/xfs/xfs_trans_buf.c