Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jan 2005 11:55:26 +0100
From:      Dimitry Andric <dimitry@andric.com>
To:        takawata@jp.freebsd.org
Cc:        freebsd-current@freebsd.org
Subject:   Re: Cannot cp(1) file from smbfs.(MMAP problem)
Message-ID:  <1343542844.20050128115526@andric.com>
In-Reply-To: <200501280629.PAA20868@axe-inc.co.jp>
References:  <200501280629.PAA20868@axe-inc.co.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
------------671D1453A54BE83
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

On 2005-01-28 at 07:29:03 takawata@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

------------671D1453A54BE83
Content-Type: application/pgp-signature

-----BEGIN PGP MESSAGE-----
Version: GnuPG v1.4.0 (MingW32)

iD8DBQFB+hoesF6jCi4glqMRAnbhAJ4jrc4lQx825PFqLcqZ6UssYRzThgCbBji/
qBMTuB6/Ed2Jr+Apa4nl1c8=
=E52/
-----END PGP MESSAGE-----

------------671D1453A54BE83--



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