On Sun, Jul 14, 2002 at 10:59:05AM +0200, Iftach Hyams wrote: > I am looking for the "highest lavel" call to indicate if a file is hard > linked (and later where are the over links in a given > subdirectory). Currently the file system is ext2 but I prefer to > do it general.
To see how many hard links a file has, man stat, specifically, the st_nlink member of the stat buffer. To see which file names are hardlinks for it is an interesting problem, and I'm not aware of any way to do it, short of a complete file system scan. Anyone? -- http://vipe.technion.ac.il/~mulix/ http://syscalltrack.sf.net/
msg20432/pgp00000.pgp
Description: PGP signature
