[PATCH] adding two new options to 'cp'

David Taylor davidt at yadt.co.uk
Tue Aug 1 13:36:53 UTC 2006


On Tue, 01 Aug 2006, Ivan Voras wrote:

> Peter Jeremy wrote:
> 
> >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.
> 
> 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.

-- 
David Taylor


More information about the freebsd-hackers mailing list