From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 31 20:45:07 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B539616A4DD for ; Mon, 31 Jul 2006 20:45:07 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3131343D46 for ; Mon, 31 Jul 2006 20:45:06 +0000 (GMT) (envelope-from freebsd-hackers@m.gmane.org) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1G7edK-0004rl-DL for freebsd-hackers@freebsd.org; Mon, 31 Jul 2006 22:45:02 +0200 Received: from cmung1440.cmu.carnet.hr ([193.198.133.170]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 31 Jul 2006 22:45:02 +0200 Received: from ivoras by cmung1440.cmu.carnet.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 31 Jul 2006 22:45:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ivan Voras Date: Mon, 31 Jul 2006 22:42:49 +0200 Lines: 13 Message-ID: References: <44C82A40.3020009@centtech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: cmung1440.cmu.carnet.hr User-Agent: Thunderbird 1.5 (Windows/20051201) In-Reply-To: <44C82A40.3020009@centtech.com> Sender: news Subject: Re: [PATCH] adding two new options to 'cp' X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Jul 2006 20:45:07 -0000 Eric Anderson wrote: > -a is 'archive' mode, which is just a quick form of -PpR. > -l is 'link' mode, where regular files get hard linked instead of copied. I agree with this, and while you're in there, can you add -s to copy sparse files (via the usual "if the buffer is all nulls, seek beyond eof instead of writing" trick)? I recently had to copy big sparse files and dd with conv=sparse didn't work! I managed with rsync but I feel this functionality is the domain of 'cp' (yes, like it is in Linux - please don't start bikesheading on this detail).