diff options
author | Eric Sandeen <sandeen@redhat.com> | 2016-01-04 08:10:19 +0300 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2016-01-04 08:10:19 +0300 |
commit | 233135b763db7c64d07b728a9c66745fb0376275 (patch) | |
tree | 0b091cd4c785f3fad2d245d9fc9a842f3067681b /fs/xfs/xfs_error.c | |
parent | 1d4292bfdc77f4f7c520064be15d0c46bd025fd2 (diff) | |
download | linux-233135b763db7c64d07b728a9c66745fb0376275.tar.xz |
xfs: print name of verifier if it fails
This adds a name to each buf_ops structure, so that if
a verifier fails we can print the type of verifier that
failed it. Should be a slight debugging aid, I hope.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_error.c')
-rw-r--r-- | fs/xfs/xfs_error.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_error.c b/fs/xfs/xfs_error.c index 74d0e5966ebc..88693a98fac5 100644 --- a/fs/xfs/xfs_error.c +++ b/fs/xfs/xfs_error.c @@ -164,9 +164,9 @@ xfs_verifier_error( { struct xfs_mount *mp = bp->b_target->bt_mount; - xfs_alert(mp, "Metadata %s detected at %pF, block 0x%llx", + xfs_alert(mp, "Metadata %s detected at %pF, %s block 0x%llx", bp->b_error == -EFSBADCRC ? "CRC error" : "corruption", - __return_address, bp->b_bn); + __return_address, bp->b_ops->name, bp->b_bn); xfs_alert(mp, "Unmount and run xfs_repair"); |