From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 1 13:36:53 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 5F94F16A4E1 for ; Tue, 1 Aug 2006 13:36:53 +0000 (UTC) (envelope-from davidt@yadt.co.uk) Received: from outcold.yadt.co.uk (outcold.yadt.co.uk [81.187.204.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1427D43D7D for ; Tue, 1 Aug 2006 13:36:40 +0000 (GMT) (envelope-from davidt@yadt.co.uk) Received: from localhost (localhost [127.0.0.1]) by outcold.yadt.co.uk (Postfix) with ESMTP id 4674D1DD4CC for ; Tue, 1 Aug 2006 14:36:39 +0100 (BST) X-Virus-Scanned: amavisd-new 2.4.0 (20060403) at yadt.co.uk Received: from outcold.yadt.co.uk ([127.0.0.1]) by localhost (outcold.yadt.co.uk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SCJDvib+0KdN for ; Tue, 1 Aug 2006 14:36:38 +0100 (BST) Received: by outcold.yadt.co.uk (Postfix, from userid 1001) id 9CE231DD4E3; Tue, 1 Aug 2006 14:36:38 +0100 (BST) Date: Tue, 1 Aug 2006 14:36:38 +0100 From: David Taylor To: freebsd-hackers@freebsd.org Message-ID: <20060801133638.GA83496@outcold.yadt.co.uk> Mail-Followup-To: freebsd-hackers@freebsd.org References: <44C8FB65.9020102@FreeBSD.org> <44CE03D2.2050803@centtech.com> <17614.4005.407223.621637@bhuda.mired.org> <44CE199C.2020500@centtech.com> <17614.8289.134373.387558@bhuda.mired.org> <96b30c400607310847s1d2f845eo212b234d03f51e9a@mail.gmail.com> <17614.10982.499561.139268@bhuda.mired.org> <20060801072611.GA717@turion.vk2pj.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: User-Agent: Mutt/1.4.2.1i 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: Tue, 01 Aug 2006 13:36:53 -0000 On Tue, 01 Aug 2006, Ivan Voras wrote: > Peter Jeremy wrote: >=20 > >Note that it isn's possible to accurately distinguish between a block > >of NULs and a hole in the file through the filesystem. The only way > >to accurately copy a sparse file is with dump/restore. >=20 > Hence the need for an explicit switch. A switch doesn't help. A sparse file can contain both holes and blocks of NULs. You could, I suppose, do something like -s 100, which would seek past any block of >100 NULs. --=20 David Taylor