From: Steve French Date: Fri, 2 Jun 2006 18:17:11 +0000 (+0000) Subject: [CIFS] Fix mapping of old SMB return code Invalid Net Name so it is X-Git-Tag: v2.6.18-rc1~463^2~20 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=43411d699e8cf3293674da558d31a02e0012aa9d;p=linux-2.6-omap-h63xx.git [CIFS] Fix mapping of old SMB return code Invalid Net Name so it is 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 --- diff --git a/fs/cifs/netmisc.c b/fs/cifs/netmisc.c index a0bcdd6f4a6..b66eff5dc62 100644 --- a/fs/cifs/netmisc.c +++ b/fs/cifs/netmisc.c @@ -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},