From owner-freebsd-questions@FreeBSD.ORG Wed Jun 14 22:55:11 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 99B9A16A474 for ; Wed, 14 Jun 2006 22:55:11 +0000 (UTC) (envelope-from dgl@kirk.dlee.org) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id A337C43D5E for ; Wed, 14 Jun 2006 22:55:05 +0000 (GMT) (envelope-from dgl@kirk.dlee.org) Received: from kirk.dlee.org ([141.156.39.56]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J0V00JWMGZQ1OK0@vms046.mailsrvcs.net> for freebsd-questions@freebsd.org; Wed, 14 Jun 2006 17:55:03 -0500 (CDT) Received: from kirk.dlee.org (dgl@localhost.dlee.org [127.0.0.1]) by kirk.dlee.org (8.12.11/8.12.11) with ESMTP id k5EMt2NF091299 for ; Wed, 14 Jun 2006 18:55:02 -0400 (EDT envelope-from dgl@kirk.dlee.org) Received: (from dgl@localhost) by kirk.dlee.org (8.12.11/8.12.11/Submit) id k5EMt2il091298 for freebsd-questions@freebsd.org; Wed, 14 Jun 2006 18:55:02 -0400 (EDT envelope-from dgl) Content-return: prohibited Date: Wed, 14 Jun 2006 18:55:01 -0400 From: Doug Lee To: freebsd-questions@freebsd.org Mail-followup-to: Doug Lee , freebsd-questions@freebsd.org Message-id: <20060614225501.GY687@kirk.dlee.org> Organization: SSB + BART Group MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline User-Agent: Mutt/1.5.9i Subject: smb_maperror: Unmapped error 1:158 under FreeBSD 4.11 w/smbfs & pure-ftpd X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 22:55:11 -0000 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: 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@dlee.org SSB + BART Group doug.lee@ssbbartgroup.com 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