× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Mike -

On Sun, 9 Jun 2013 23:26:31 -0700 (PDT), Mike Krebs
<majkrebs@xxxxxxxxx> wrote:

There is not a direct way of getting from an open descriptor to a file name. The fstat procedure can use file descriptors and will return inode but there is no index on inode (inode apparently being a unique entry to a file) to find the file name. A dump of the fstat information by directory could be used to create an indexed file on inode.

With hard links, a given inode can have more than one file name (or no
file name if all of the files have been deleted but the inode still
exists because it is still in use). That's why the file information
contains the inode, but not vice versa.

Ken
Opinions expressed are my own and do not necessarily represent the views
of my employer or anyone in their right mind.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.