From owner-freebsd-questions@FreeBSD.ORG Mon Oct 13 18:25:51 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D27B016A4B3 for ; Mon, 13 Oct 2003 18:25:51 -0700 (PDT) Received: from hermes.pressenter.com (hermes.pressenter.com [69.58.128.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id F241843FE0 for ; Mon, 13 Oct 2003 18:25:50 -0700 (PDT) (envelope-from nospam@hiltonbsd.com) Received: from [69.58.133.191] (helo=daggar.sbgnet.local) by hermes.pressenter.com with smtp (Exim 3.35 #1) id 1A9Dwb-0000lg-00; Mon, 13 Oct 2003 20:25:50 -0500 Date: Mon, 13 Oct 2003 20:25:48 -0500 From: Stephen Hilton To: Gerald S Stoller Message-Id: <20031013202548.08c2cf76.nospam@hiltonbsd.com> In-Reply-To: <20031013.210211.-381819.0.GS_Stoller@juno.com> References: <20031013.210211.-381819.0.GS_Stoller@juno.com> X-Mailer: Sylpheed version 0.9.4 (GTK+ 1.2.10; i386-portbld-freebsd4.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: gs_stoller@hotmail.com cc: freebsd-questions@freebsd.org Subject: Re: The find command X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Oct 2003 01:25:51 -0000 On Mon, 13 Oct 2003 21:02:11 -0400 Gerald S Stoller wrote: > FreeBSD 4.3-RELEASE FreeBSD 4.3-RELEASE #0: Sat Apr 21 10:54:49 GMT 2001 > jkh@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@hiltonbsd.com