]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: add xfs_verifier_error()
authorEric Sandeen <sandeen@sandeen.net>
Thu, 27 Feb 2014 04:21:07 +0000 (15:21 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 27 Feb 2014 04:21:07 +0000 (15:21 +1100)
commit82ea3daa075b5e595aaf64420f557bb698d3a7de
tree9e6be6202d5384ca69b417e988f15ba8ce2f7101
parent42409d3036f98404f94b1d700b3a922e497e537a
xfs: add xfs_verifier_error()

We want to distinguish between corruption, CRC errors,
etc.  In addition, the full stack trace on verifier errors
seems less than helpful; it looks more like an oops than
corruption.

Create a new function to specifically alert the user to
verifier errors, which can differentiate between
EFSCORRUPTED and CRC mismatches.  It doesn't dump stack
unless the xfs error level is turned up high.

Define a new error message (EFSBADCRC) to clearly identify
CRC errors.  (Defined to EBADMSG, bad message)

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_error.c
fs/xfs/xfs_error.h
fs/xfs/xfs_linux.h