smb_maperror: Unmapped error 1:158 under FreeBSD 4.11 w/smbfs & pure-ftpd



I run the latest 4.11-STABLE (yes I know that's not the latest STABLE
in general) and use smbfs to mount a 300-gig network file share. I
also use pure-ftpd and hope to allow ftp access to parts of that
drive.

Problem: When a user connects to pure-ftpd, it is possible to list
files, navigate among folders, and even upload; but on trying to
download any file from the smbfs share, the following error is logged
via syslog and the download instantly terminates:

<kern.crit> kirk /kernel: smb_maperror: Unmapped error 1:158

The error returned to the client (at least when I use FreeBSD's ftp as
a client) is (shown with context)

150-Accepted data connection
150 21286.3 kbytes to download
0% | | 0 --:-- ETA
450 Error during write to data connection

This reminds me that, on older FreeBSD versions, attempting to FTP
straight off an smbfs mount, though not causing kernel errors, did
result in corrupt downloads. That applied to the FreeBSD-internal
ftpd as well as to pure-ftpd, but not to wu-ftpd. (I don't want to
use wu-ftpd though for security reasons.) I can transfer files
to/from the smbfs share by other means, such as via cp, without
problems.

Anyone have any idea what's going on here? Google searches for error
1:158 turned up very little solid (unless I missed something).

Please Cc replies.


--
Doug Lee dgl@xxxxxxxx
SSB + BART Group doug.lee@xxxxxxxxxxxxxxxx http://www.ssbbartgroup.com
"It's not easy to be crafty and winsome at the same time, and few accomplish
it after the age of six." --John W. Gardner and Francesca Gardner Reese
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: [opensuse] smbmount failed??
    ... Mandag 12 marts 2007 00:47 skrev Felix Miata: ... The only thing it lacks IIRC is the ability to mount a ... SMBFS mounts with recompiled with SMBFS enabled 10.2 ... I never was into kernel recompling and stuff. ...
    (SuSE)
  • FC5 - cifs and samba - mount error 12 = Cannot allocate memory
    ... I need help to mount XP shares on Fedora Core 5 because smbfs is no ... longer supported in FC5. ... It seems that smbfs has been replaced with cifs. ...
    (comp.os.linux.networking)
  • Re: cups in debian?? Resend to list
    ... >all you x-window startup based on this file '.xinitrc', ... Samba was included, and I've setup all ... scripts and modified them for that path as a mount point. ... smbfs: mount_data version 1919251317 is not supported ...
    (Debian-User)
  • RE: Help needed - Cant Upgrade from Samba 3.0.3-5
    ... that I used to be able to mount my windows shares ... Smbfs: mount_data version 1029990773 is not supported ... Here is my original fstab as you can see the two sets of error messages ... Help needed - Cant Upgrade from Samba 3.0.3-5 ...
    (Fedora)
  • Re: [2.6 patch] remove smbfs
    ... samba-2.x.x) work only with smbfs on the client side. ... don't make it too easy to mount with insecure lanman (ie due to ... Today the user has to explicitly specify ... There are four common issues with mounting to these very old servers: ...
    (Linux-Kernel)