Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Feb 2006 23:06:06 +0000
From:      Steve Hodgson <steve@stevehodgson.co.uk>
To:        Mike Jakubik <mikej@rogers.com>
Cc:        stable@freebsd.org
Subject:   Re: smb_maperror: Unmapped error 1:158
Message-ID:  <43F110DE.3090904@stevehodgson.co.uk>
In-Reply-To: <43D9E621.3050104@rogers.com>
References:  <43D94B68.8030307@rogers.com> <43D9E4C5.5080601@stevehodgson.co.uk> <43D9E621.3050104@rogers.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Mike Jakubik wrote:
> Steve Hodgson wrote:
>> Mike Jakubik wrote:
>>
>>> Jan 26 17:01:47 desktop kernel: smb_maperror: Unmapped error 1:158
>>> Jan 26 17:02:18 desktop last message repeated 52 times
>>> Jan 26 17:04:19 desktop last message repeated 646 times
>>> Jan 26 17:14:20 desktop last message repeated 6342 times
>>
The fix for this out of the NetBSD source tree is (apply in /usr/src):

--- sys/netsmb/smb_subr.old     Mon Feb 13 20:21:09 2006
+++ sys/netsmb/smb_subr.c       Mon Feb 13 20:23:49 2006
@@ -273,6 +273,9 @@
                        return EEXIST;
                    case ERRquota:
                        return EDQUOT;
+                   case ERRnotlocked:
+                       /* it's okay to try to unlock already unlocked 
file */
+                       return 0;
                }
                break;
            case ERRSRV:

When I tried this I got couldn't logon to the server, and I got 
"smb_encrypt: password encryption is not available" messages in syslog. 
The following patch just is essentially a noop, but removes the 
(original) "unmapped 1:158" error:

--- sys/netsmb/smb_subr.old     Mon Feb 13 20:21:09 2006
+++ sys/netsmb/smb_subr.c       Mon Feb 13 20:23:49 2006
@@ -273,6 +273,9 @@
                        return EEXIST;
                    case ERRquota:
                        return EDQUOT;
+                   case ERRnotlocked:
+                       return EBADRPC;
                }
                break;
            case ERRSRV:

I've not tried this though.

Steve



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43F110DE.3090904>