提交 1bee12b8 编写于 作者: E Eric Sandeen 提交者: Ben Myers

xfs: Do not return EFSCORRUPTED when filesystem probe finds no XFS magic

98021821 changed the return value from EWRONGFS (aka EINVAL)
to EFSCORRUPTED which doesn't seem to be handled properly by
the root filesystem probe.
Signed-off-by: NEric Sandeen <sandeen@redhat.com>
Tested-by: NSergei Trofimovich <slyfox@gentoo.org>
Reviewed-by: NBen Myers <bpm@sgi.com>
Signed-off-by: NBen Myers <bpm@sgi.com>
上级 37f13561
...@@ -658,7 +658,7 @@ xfs_sb_quiet_read_verify( ...@@ -658,7 +658,7 @@ xfs_sb_quiet_read_verify(
return; return;
} }
/* quietly fail */ /* quietly fail */
xfs_buf_ioerror(bp, EFSCORRUPTED); xfs_buf_ioerror(bp, EWRONGFS);
} }
static void static void
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册