Cannot cp(1) file from smbfs.(MMAP problem)
Dimitry Andric
dimitry at andric.com
Fri Jan 28 02:55:31 PST 2005
On 2005-01-28 at 07:29:03 takawata at jp.freebsd.org wrote:
> When /mnt is smbfs,
> % cp /mnt/foo.txt /tmp
> will produce
> cp: /mnt/foo.txt: Invalid argument
> And tracing syscall shows that the error is produced by
> mmap(2).
This is strange, because cp shouldn't use mmap() for copying 0-byte
files, AFAIK. See:
http://www.freebsd.org/cgi/cvsweb.cgi/src/bin/cp/utils.c#rev1.42
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 183 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20050128/2b917033/attachment.bin
More information about the freebsd-current
mailing list