Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Jun 2006 14:46:42 -0400
From:      Lowell Gilbert <freebsd-stable-local@be-well.ilk.org>
To:        "Eduardo Meyer" <dudu.meyer@gmail.com>
Cc:        stable@freebsd.org
Subject:   Re: How can I know which files a proccess is accessing?
Message-ID:  <44r720ercd.fsf@be-well.ilk.org>
In-Reply-To: <d3ea75b30606070657wbbc00cesc3b646276591be4@mail.gmail.com> (Eduardo Meyer's message of "Wed, 7 Jun 2006 10:57:48 -0300")
References:  <d3ea75b30606061339u55efbecemab0d3d0eb9adb636@mail.gmail.com> <20060606211327.GG32476@bunrab.catwhisker.org> <d3ea75b30606061416i60630419k9505b076edd2f4c7@mail.gmail.com> <m3lks9omp0.fsf@merlin.emma.line.org> <d3ea75b30606070657wbbc00cesc3b646276591be4@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
"Eduardo Meyer" <dudu.meyer@gmail.com> 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.  



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44r720ercd.fsf>