]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libxfs: add xfs_verifier_error()
authorDave Chinner <dchinner@redhat.com>
Thu, 6 Mar 2014 23:25:55 +0000 (10:25 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 6 Mar 2014 23:25:55 +0000 (10:25 +1100)
commit99c1ec967271c4268431f2476005a707e91d7301
treec2975ef87b6ddb981bc8d1704b3ebe0a336dedbe
parent43b5aeed445c3505d16bc83693daecd2c8dcc059
libxfs: add xfs_verifier_error()

[userspace port]

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: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
include/darwin.h
include/freebsd.h
include/gnukfreebsd.h
include/irix.h
include/linux.h
libxfs/util.c
libxfs/xfs.h