On Mon, Nov 22, 1999 at 01:48:38PM -0500, Zhihui Zhang wrote:
>
> By the way, I also find out if you copy a file with holes into another
> file, the holes in the first file will be replaced with 0s in the second
> file, taking more disk space (check with du). Is there a better solution
> for this?
Unfortunately, not one that preserves the holes exactly the way they
existed in the original file. See
http://reality.sgi.com/zwicky_neu/testdump.doc.html for a good discussion
of the problems of copying files with holes via the userland interface
to the file system. If all you care about is the space, you could write
a version of cp that compressed all zeroed blocks into holes.
-- Brooks
--
"Those who desire to give up freedom in order to gain security, will not
have, nor do they deserve, either one"
--Thomas Jefferson
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message