Commit aeb4f20a authored by Eric Sandeen's avatar Eric Sandeen Committed by 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: default avatarEric Sandeen <sandeen@redhat.com>
Tested-by: default avatarSergei Trofimovich <slyfox@gentoo.org>
Reviewed-by: default avatarBen Myers <bpm@sgi.com>
Signed-off-by: default avatarBen Myers <bpm@sgi.com>
parent a17164e5
......@@ -658,7 +658,7 @@ xfs_sb_quiet_read_verify(
return;
}
/* quietly fail */
xfs_buf_ioerror(bp, EFSCORRUPTED);
xfs_buf_ioerror(bp, EWRONGFS);
}
static void
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment