diff options
author | Eric Sandeen <sandeen@sandeen.net> | 2009-07-20 10:52:15 -0500 |
---|---|---|
committer | Felix Blyakher <felixb@sgi.com> | 2009-08-11 15:43:35 -0500 |
commit | 583e0e41ee29478e2147aeffeb772657f8db767a (patch) | |
tree | 31eac3118eaca68ad8b6f363fbc5ed25c3e1abc4 | |
parent | 7509ee34a365c041718d0b676e5ee255b58b5dda (diff) | |
download | linux-583e0e41ee29478e2147aeffeb772657f8db767a.tar.gz linux-583e0e41ee29478e2147aeffeb772657f8db767a.tar.bz2 linux-583e0e41ee29478e2147aeffeb772657f8db767a.zip |
use XFS_CORRUPTION_ERROR in xfs_btree_check_sblock
In Red Hat Bug 512552
- Can't write to XFS mount during raid5 resync
a user ran into corruption while resyncing a raid, and we failed
a consistency test, but didn't get much more info; it'd be nice
to call XFS_CORRUPTION_ERROR here so we can see the buffer
contents.
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Felix Blyakher <felixb@sgi.com>
-rw-r--r-- | fs/xfs/xfs_btree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_btree.c b/fs/xfs/xfs_btree.c index cde5a2668293..52b5f14d0c32 100644 --- a/fs/xfs/xfs_btree.c +++ b/fs/xfs/xfs_btree.c @@ -120,8 +120,8 @@ xfs_btree_check_sblock( XFS_RANDOM_BTREE_CHECK_SBLOCK))) { if (bp) xfs_buftrace("SBTREE ERROR", bp); - XFS_ERROR_REPORT("xfs_btree_check_sblock", XFS_ERRLEVEL_LOW, - cur->bc_mp); + XFS_CORRUPTION_ERROR("xfs_btree_check_sblock", + XFS_ERRLEVEL_LOW, cur->bc_mp, block); return XFS_ERROR(EFSCORRUPTED); } return 0; |