smb_maperror: Unmapped error 1:158
Steve Hodgson
steve at stevehodgson.co.uk
Mon Feb 13 15:06:14 PST 2006
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
More information about the freebsd-stable
mailing list