Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!seismo!mcvax!diku!olamb!kimcm
From: kimcm@olamb.UUCP (Kim Chr. Madsen)
Newsgroups: net.sources
Subject: Re: lln - a routine to list all links to a file
Message-ID: <190@olamb.UUCP>
Date: Fri, 2-Jan-87 08:13:52 EST
Article-I.D.: olamb.190
Posted: Fri Jan  2 08:13:52 1987
Date-Received: Tue, 6-Jan-87 23:03:40 EST
References: <263@bsdpkh.UUCP> <659@instable.UUCP>
Organization: AmbraSoft A/S (Denmark)
Lines: 19

In article <659@instable.UUCP>, amos@instable.UUCP (Amos Shapir) writes:
> What's wrong with:
> 
> set `ls -id file`
> find / -inum $1 -print
> 
Well nothing, if you don't have more than one filesystem or don't care
about references to files which have nothing in common with the file searched
for!

Don't forget that there is a separate inode table connected to each filesystem,
if / (root) and /usr is on separate filesystems they both have the inode 2,
but /usr is not a link to /.

What you'll have to do to make this work is to identify the filesystem where
the ``file'' is located and then make the find command start at that point.

					Best wishes for 1987
					Kim Chr. Madsen