]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[CIFS] Fix mapping of old SMB return code Invalid Net Name so it is
authorSteve French <sfrench@us.ibm.com>
Fri, 2 Jun 2006 18:17:11 +0000 (18:17 +0000)
committerSteve French <sfrench@us.ibm.com>
Fri, 2 Jun 2006 18:17:11 +0000 (18:17 +0000)
recognized on mount

the old mapping of this was to ENODEV (instead of ENXIO) - but
ENODEV is what mount returns when the cifs driver will not load
so change this to map to ENXIO (which was what the equivalent
condition returned for mapping errors from more modern servers)

Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/netmisc.c

index a0bcdd6f4a67c8ff7f6156f28313e338d13af61a..b66eff5dc62445b1e4478811e26ddccaea2a0c85 100644 (file)
@@ -88,7 +88,7 @@ static const struct smb_to_posix_error mapping_table_ERRSRV[] = {
        {ERRbadtype, -EREMOTE},
        {ERRaccess, -EACCES},
        {ERRinvtid, -ENXIO},
-       {ERRinvnetname, -ENODEV},
+       {ERRinvnetname, -ENXIO},
        {ERRinvdevice, -ENXIO},
        {ERRqfull, -ENOSPC},
        {ERRqtoobig, -ENOSPC},