How do you find the symbolic links to files.

Dan Bernstein brnstnd at kramden.acf.nyu.edu
Fri Dec 7 05:53:53 AEST 1990


In article <JGREELY.90Dec5134716 at morganucodon.cis.ohio-state.edu> J Greely <jgreely at cis.ohio-state.edu> writes:
> In article <10960:Dec507:07:4190 at kramden.acf.nyu.edu>
>  brnstnd at kramden.acf.nyu.edu (Dan Bernstein) writes:
> >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.
> That only works if 1) stat returns the number of blocks,

That's what st_blocks is for.

> and 2) statfs
> (or its equivalent) returns the correct block size.

Which is what statfs is for, but who cares? The point is that an
application can depend on st_blocks for information. An archiver should
preserve that information.

---Dan



More information about the Comp.unix.internals mailing list