[PATCH] adding two new options to 'cp'

Ivan Voras ivoras at fer.hr
Tue Aug 1 21:38:16 UTC 2006


Eric Anderson wrote:

> It could possibly be bad if you have a real file (say a 10GB file, 
> partially filled with zeros - a disk image created with dd for 
> instance), and you use cp with something like -spR to recursively copy 
> all files.  Your destination disk image would then be a sparse file, so 

Incidentally, this is exactly why I've needed it - I like to create disk 
images for virtual machines as sparse files, when I know they won't be 
much filled, but need the "virtual" space :)



More information about the freebsd-hackers mailing list