use XFS_CORRUPTION_ERROR in xfs_btree_check_sblock
PATCH 1/1 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.
Compile-tested only...
---
fs/xfs/xfs_btree.c +2 -2
@@ -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 ;
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Quoted 9 lines · Eric Sandeen
In Red Hat Bug 512552
- Can't write to XFS mount during raid5 resynca 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_ERRORhere so we can see the buffer contents.Compile-tested only...
Looks good to me, I'll throw it into my XFSQA queue..
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Christoph Hellwig
Reviewed-byQuoted 4 lines · Christoph Hellwig
Quoted 3 lines · Eric Sandeen
In Red Hat Bug 512552
- Can't write to XFS mount during raid5 resync
Quoted 8 lines
Quoted 6 lines
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_ERRORhere so we can see the buffer contents.Compile-tested only...
Looks good to me, I'll throw it into my XFSQA queue..
I has survied quite a few xfsqa runs for me, so
sounds like another 2.6.31 candidate to me..
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs