Skip to content

Commit

Permalink
xfs: Do not return EFSCORRUPTED when filesystem probe finds no XFS magic
Browse files Browse the repository at this point in the history
9802182 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: Eric Sandeen <sandeen@redhat.com>
Tested-by: Sergei Trofimovich <slyfox@gentoo.org>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
  • Loading branch information
Eric Sandeen authored and Ben Myers committed Jan 16, 2013
1 parent a17164e commit aeb4f20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/xfs/xfs_mount.c
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ xfs_sb_quiet_read_verify(
return;
}
/* quietly fail */
xfs_buf_ioerror(bp, EFSCORRUPTED);
xfs_buf_ioerror(bp, EWRONGFS);
}

static void
Expand Down

0 comments on commit aeb4f20

Please sign in to comment.