From owner-freebsd-current@FreeBSD.ORG Fri Jan 28 10:55:31 2005 Return-Path: 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 9583816A4CE for ; Fri, 28 Jan 2005 10:55:31 +0000 (GMT) Received: from tensor.xs4all.nl (tensor.xs4all.nl [194.109.160.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id F079D43D48 for ; Fri, 28 Jan 2005 10:55:30 +0000 (GMT) (envelope-from dimitry@andric.com) Received: from kilgore.dim (kilgore.dim [192.168.0.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.xs4all.nl (Postfix) with ESMTP id 5758D2284E; Fri, 28 Jan 2005 11:55:28 +0100 (CET) Date: Fri, 28 Jan 2005 11:55:26 +0100 From: Dimitry Andric X-Priority: 3 (Normal) Message-ID: <1343542844.20050128115526@andric.com> To: takawata@jp.freebsd.org In-Reply-To: <200501280629.PAA20868@axe-inc.co.jp> References: <200501280629.PAA20868@axe-inc.co.jp> MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="----------671D1453A54BE83" cc: freebsd-current@freebsd.org Subject: Re: Cannot cp(1) file from smbfs.(MMAP problem) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Jan 2005 10:55:31 -0000 ------------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--