]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_db: Use EFSBADCRC for CRC validity indication
authorDave Chinner <dchinner@redhat.com>
Thu, 6 Mar 2014 23:27:30 +0000 (10:27 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 6 Mar 2014 23:27:30 +0000 (10:27 +1100)
commit9c0a86ed6ef6c73d41d83a473a9dd6ddb1b1a6ec
tree9e56191fdb98d0b7351f9810fdacd164efd5bc9e
parent459229339028b57df1d9ef2b14ac6af457eb70b7
xfs_db: Use EFSBADCRC for CRC validity indication

xfs_db currently gives indication as to whether a buffer CRC is ok
or not. Currently it does this by checking for EFSCORRUPTED in the
b_error field of the buffer. Now that we have EFSBADCRC to indicate
a bad CRC independently of structure corruption, use that instead to
drive the CRC correct/incorrect indication in the structured output.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
db/io.c
db/io.h