From owner-freebsd-questions Wed Feb 10 09:53:27 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA26811 for freebsd-questions-outgoing; Wed, 10 Feb 1999 09:53:27 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from milf18.bus.net (milf18.bus.net [207.41.25.18]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA26804 for ; Wed, 10 Feb 1999 09:53:24 -0800 (PST) (envelope-from cao@bus.net) Received: from localhost (cao@localhost) by milf18.bus.net (8.8.8/8.8.8) with ESMTP id MAA24307; Wed, 10 Feb 1999 12:53:13 -0500 (EST) (envelope-from cao@bus.net) X-Authentication-Warning: milf18.bus.net: cao owned process doing -bs Date: Wed, 10 Feb 1999 12:53:13 -0500 (EST) From: "Chuck O'Donnell" To: cjclark@home.com cc: FreeBSD Questions Subject: Re: Get Filename from Inode In-Reply-To: <199902101732.MAA16082@cc942873-a.ewndsr1.nj.home.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 10 Feb 1999, Crist J. Clark wrote: > I have some error messages reporting problems with files by their > inode numbers. However, I have been unable to figure out how to locate > the files. Despite my best efforts with man and apropos, I cannot find > a command to do the 'reverse-lookup' of a filename from an inode. I > have not even found a C function for it to write my own > quick-n-dirty executable. > > Some quick help? Maybe slow, but how about: $ find [dir] -inum [inode] -print Chuck > > PS: 'man inode' refers to a , but I have no > /usr/include/sys/inode/.h file. Is this normal? Or manpage not > up-to-date? > -- > Crist J. Clark cjclark@home.com > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message