From owner-freebsd-stable@FreeBSD.ORG Wed Jun 7 20:32:33 2006 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 22C1E1702A6 for ; Wed, 7 Jun 2006 18:46:46 +0000 (UTC) (envelope-from freebsd-stable-local@be-well.ilk.org) Received: from mail2.sea5.speakeasy.net (mail2.sea5.speakeasy.net [69.17.117.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE57D43D48 for ; Wed, 7 Jun 2006 18:46:45 +0000 (GMT) (envelope-from freebsd-stable-local@be-well.ilk.org) Received: (qmail 29957 invoked from network); 7 Jun 2006 18:46:45 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail2.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 7 Jun 2006 18:46:45 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 1A1CD2842A; Wed, 7 Jun 2006 14:46:43 -0400 (EDT) To: "Eduardo Meyer" References: <20060606211327.GG32476@bunrab.catwhisker.org> From: Lowell Gilbert Date: Wed, 07 Jun 2006 14:46:42 -0400 In-Reply-To: (Eduardo Meyer's message of "Wed, 7 Jun 2006 10:57:48 -0300") Message-ID: <44r720ercd.fsf@be-well.ilk.org> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: stable@freebsd.org Subject: Re: How can I know which files a proccess is accessing? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 20:32:33 -0000 "Eduardo Meyer" writes: > My wish is that fstat had an option to show file name instead of inodes :) > > For those who pointed me using find(1) looking for inum from the > output of fstat(1), thank you; it is a very heavy loading option (disk > usage increases around 30% while doing this) but it seemed to be the > interesting option (at least, the options that worded). Note that the filesystem doesn't store any mapping from inode to filename, just the other way around. Therefore, if fstat supported such a function, it would have to do pretty much the same exhaustive search that you are doing with find.