| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH 14/36] xfs: don't emit corruption noise on fs probes |
| From: | Dave Chinner <david@xxxxxxxxxxxxx> |
| Date: | Wed, 13 Nov 2013 17:40:38 +1100 |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <1384324860-25677-1-git-send-email-david@xxxxxxxxxxxxx> |
| References: | <1384324860-25677-1-git-send-email-david@xxxxxxxxxxxxx> |
From: Dave Chinner <dchinner@xxxxxxxxxx>
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 <dchinner@xxxxxxxxxx>
Reviewed-by: Christoph Hellwig <hch@xxxxxx>
---
libxfs/xfs_sb.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/libxfs/xfs_sb.c b/libxfs/xfs_sb.c
index 11353bb..65ddc2f 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);
}
}
--
1.8.4.rc3
|
| Previous by Date: | [PATCH 15/36] libxfs: fix root inode handling inconsistencies, Dave Chinner |
|---|---|
| Next by Date: | [PATCH 10/36] libxfs: Minor cleanup and bug fix sync, Dave Chinner |
| Previous by Thread: | [PATCH 15/36] libxfs: fix root inode handling inconsistencies, Dave Chinner |
| Next by Thread: | [PATCH 10/36] libxfs: Minor cleanup and bug fix sync, Dave Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |