The find command
Stephen Hilton
nospam at hiltonbsd.com
Mon Oct 13 18:25:51 PDT 2003
On Mon, 13 Oct 2003 21:02:11 -0400
Gerald S Stoller <gs_stoller at juno.com> wrote:
> FreeBSD 4.3-RELEASE FreeBSD 4.3-RELEASE #0: Sat Apr 21 10:54:49 GMT 2001
> jkh at narf.osd.bsdi.com:/usr/src/sys/compile/GENERIC i386
>
> I tried out the -inum option of the find command and find
> that it didn't work. I got a valid inode number from 'ls -i' and fed
> that to 'find dir -inum inode#' and got no file names back. If there
> is someone familiar with this command's code and can fix it, please
> inform me and do so. I don't know where the error is, i.e., is all the
> code for -inum missing or just a small part of it? I don't know what
> structure contains all the inodes in a partition and how to associate
> inodes with file path-names (but I'd like to know this, so if someone can
> send me data as to where this info is, I would appreciate it).
> I may try to fix it if I can get that info on inodes that I
> mentioned, if no one else can do it.
This works on my 4.9-RC and a 4.8 system.
$ find /usr/home -inum 22050
/usr/home/findme.test
$
HTH,
Stephen Hilton
nospam at hiltonbsd.com
More information about the freebsd-questions
mailing list