From: Dave Chinner Date: Wed, 13 Nov 2013 06:40:38 +0000 (+0000) Subject: xfs: don't emit corruption noise on fs probes X-Git-Tag: v3.2.0-alpha2~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6aa3d87bc45348dc0948ae0cea57bf3033d64694;p=thirdparty%2Fxfsprogs-dev.git xfs: don't emit corruption noise on fs probes If we get EWRONGFS due to probing of non-xfs filesystems, there's no need to issue the scary corruption error and backtrace. Ported from kernel commit 31625f28. Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig Signed-off-by: Rich Johnston --- diff --git a/libxfs/xfs_sb.c b/libxfs/xfs_sb.c index 11353bb29..65ddc2ff3 100644 --- a/libxfs/xfs_sb.c +++ b/libxfs/xfs_sb.c @@ -574,8 +574,9 @@ xfs_sb_read_verify( out_error: if (error) { - XFS_CORRUPTION_ERROR(__func__, XFS_ERRLEVEL_LOW, - mp, bp->b_addr); + if (error != EWRONGFS) + XFS_CORRUPTION_ERROR(__func__, XFS_ERRLEVEL_LOW, + mp, bp->b_addr); xfs_buf_ioerror(bp, error); } }