How can I know which files a proccess is accessing?

Lowell Gilbert freebsd-stable-local at be-well.ilk.org
Wed Jun 7 20:32:33 UTC 2006


"Eduardo Meyer" <dudu.meyer at 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.  


More information about the freebsd-stable mailing list