Is there a way to open a file using a well-known inode

I get an inode for some log file, for example '/ tmp / logging'
and I want to open it via inode, not the path.
How to do it?

+5
source share
2 answers

With the exception of brute force searches in the file system for inode (ex, find / -inum $X), you cannot.

See the discussion here: http://coding.derkeiler.com/Archive/Perl/comp.lang.perl.misc/2006-05/msg02223.html

+5
source

In general, you cannot do this from user space, because system procedures take a path as an argument.

Take a look at this post.

+7
source

All Articles