Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Aug 2006 14:36:38 +0100
From:      David Taylor <davidt@yadt.co.uk>
To:        freebsd-hackers@freebsd.org
Subject:   Re: [PATCH] adding two new options to 'cp'
Message-ID:  <20060801133638.GA83496@outcold.yadt.co.uk>
In-Reply-To: <ean95a$e1u$1@sea.gmane.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> <ealpn1$lan$1@sea.gmane.org> <20060801072611.GA717@turion.vk2pj.dyndns.org> <ean95a$e1u$1@sea.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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