[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 [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message