How do you find the symbolic links to files.

Dan Bernstein brnstnd at kramden.acf.nyu.edu
Wed Dec 5 18:07:41 AEST 1990


In article <1990Dec5.052124.28435 at erg.sri.com> zwicky at erg.sri.com (Elizabeth Zwicky) writes:
> Unfortunately, you
> have to get pretty intimate with the disk to tell that the 20 meg of
> nulls aren't there

Hardly. You just look at the file size. Other than the file size, there
is no way a portable program can tell the difference between a hole and
an allocated block of zeros. If an archiver knows the block size and
sees that a file has N holes, it can just squish the first N holes it
finds, and write explicit zeros in the remaining zero-filled blocks.

---Dan



More information about the Comp.unix.internals mailing list