Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Nov 2002 15:22:23 +0200
From:      Vallo Kallaste <kalts@estpak.ee>
To:        freebsd-current@freebsd.org
Subject:   Re: smbfs problems
Message-ID:  <20021121132223.GA2076@tiiu.internal>
In-Reply-To: <20021121130830.GB1907@tiiu.internal>
References:  <20021121130830.GB1907@tiiu.internal>

next in thread | previous in thread | raw e-mail | index | archive | help

[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




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