From owner-freebsd-current@FreeBSD.ORG Wed May 28 09:15:50 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 570BD106567A for ; Wed, 28 May 2008 09:15:50 +0000 (UTC) (envelope-from Hartmut.Brandt@dlr.de) Received: from smtp-1.dlr.de (smtp-1.dlr.de [195.37.61.185]) by mx1.freebsd.org (Postfix) with ESMTP id D9ED38FC23 for ; Wed, 28 May 2008 09:15:49 +0000 (UTC) (envelope-from Hartmut.Brandt@dlr.de) Received: from beagle.kn.op.dlr.de ([129.247.178.136]) by smtp-1.dlr.de over TLS secured channel with Microsoft SMTPSVC(6.0.3790.1830); Wed, 28 May 2008 11:02:32 +0200 Date: Wed, 28 May 2008 11:02:34 +0200 (CEST) From: Harti Brandt X-X-Sender: brandt_h@beagle.kn.op.dlr.de To: current@freebsd.org Message-ID: <20080528110003.Q24259@beagle.kn.op.dlr.de> X-OpenPGP-Key: harti@freebsd.org MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-OriginalArrivalTime: 28 May 2008 09:02:32.0384 (UTC) FILETIME=[90555C00:01C8C0A1] Cc: Subject: cp(1) and mmap X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Harti Brandt List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 May 2008 09:15:50 -0000 Hi all, it looks like there is no fallback in cp(1) when mmaping the source file fails. I'm mounting SMB shares via smbnetfs (which in turn uses fuse) and it seems not to support mmaping files. Shouldn't cp just fallback to a normal read()/write() loop in this case? harti