]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
xfs: Do not return EFSCORRUPTED when filesystem probe finds no XFS magic
authorEric Sandeen <sandeen@redhat.com>
Wed, 16 Jan 2013 23:33:53 +0000 (17:33 -0600)
committerBen Myers <bpm@sgi.com>
Mon, 28 Jan 2013 18:48:21 +0000 (12:48 -0600)
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>
fs/xfs/xfs_mount.c

index da508463ff1006b7b4b5371d5f2c19495cb5d44b..7d6df7c00c36fb22e8f864285c6d2352b44a7cdd 100644 (file)
@@ -658,7 +658,7 @@ xfs_sb_quiet_read_verify(
                return;
        }
        /* quietly fail */
-       xfs_buf_ioerror(bp, EFSCORRUPTED);
+       xfs_buf_ioerror(bp, EWRONGFS);
 }
 
 static void