From owner-freebsd-current Thu Nov 21 5:22:29 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EBC1E37B401 for ; Thu, 21 Nov 2002 05:22:27 -0800 (PST) Received: from MX1.estpak.ee (ld3.estpak.ee [194.126.101.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id E1CAA43E97 for ; Thu, 21 Nov 2002 05:22:25 -0800 (PST) (envelope-from kalts@estpak.ee) Received: from tiiu.internal (80-235-40-232-dsl.mus.estpak.ee [80.235.40.232]) by MX1.estpak.ee (Postfix) with ESMTP id E7791888B2 for ; Thu, 21 Nov 2002 15:21:29 +0200 (EET) Received: from tiiu.internal (localhost [127.0.0.1]) by tiiu.internal (8.12.6/8.12.6) with ESMTP id gALDMNw6002131 for ; Thu, 21 Nov 2002 15:22:23 +0200 (EET) (envelope-from vallo@tiiu.internal) Received: (from vallo@localhost) by tiiu.internal (8.12.6/8.12.6/Submit) id gALDMN0L002130 for freebsd-current@freebsd.org; Thu, 21 Nov 2002 15:22:23 +0200 (EET) (envelope-from vallo) Date: Thu, 21 Nov 2002 15:22:23 +0200 From: Vallo Kallaste To: freebsd-current@freebsd.org Subject: Re: smbfs problems Message-ID: <20021121132223.GA2076@tiiu.internal> Reply-To: kalts@estpak.ee References: <20021121130830.GB1907@tiiu.internal> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021121130830.GB1907@tiiu.internal> User-Agent: Mutt/1.5.1i-ja.1 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG [snip] > After creating 5MB file using /dev/urandom, I'm trying to copy it > over to users/vallo smb share mounted at /mnt, which fails. The copy > is interruptible using Ctrl-C. Examination at NT4 server shows 0 > byte file. Umount of /mnt fails with device busy. Umount -f /mnt > fails to return prompt, but after interrupting the smbfs is > unmounted. There is no kernel messages or something in syslog. The > copy operation returns failure ~3 seconds after start. [snip] Sorry forgot to add one detail. Althought dd'ing the same file to smbfs mount works, it'll sometimes modify the file being copied (size is different). It doesn't happen reliably, sometimes the file is copied fine, sometimes not. At the times the file isn't copied right there's an error message: root:vallo# dd if=testfile of=/mnt/vallo/test1 dd: /mnt/vallo/test1: Bad address 9356+0 records in 9355+0 records out 4789760 bytes transferred in 20.350003 secs (235369 bytes/sec) root:vallo# ls -la /mnt/vallo/ total 4710 drwxr-xr-x 1 root wheel 16384 Nov 21 15:10 . drwxr-xr-x 1 root wheel 16384 Jan 1 1970 .. -rwxr-xr-x 1 root wheel 4789760 Nov 21 15:10 test1 -rwxr-xr-x 1 root wheel 0 Nov 21 14:52 testfile root:vallo# ls -la /home/vallo/testfile -rw-r--r-- 1 root wheel 5242880 Nov 21 14:52 /home/vallo/testfile It seems to me that adding conv=sync flag to dd removes the abovementioned failure case. 10 tries of dd with this flag added did fine. root:vallo# dd if=testfile of=/mnt/vallo/test1 conv=sync 10240+0 records in 10240+0 records out 5242880 bytes transferred in 24.295283 secs (215798 bytes/sec) root:vallo# ls -la /mnt/vallo/ total 5152 drwxr-xr-x 1 root wheel 16384 Nov 21 15:13 . drwxr-xr-x 1 root wheel 16384 Jan 1 1970 .. -rwxr-xr-x 1 root wheel 5242880 Nov 21 15:13 test1 -- Vallo Kallaste kalts@estpak.ee To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message