Is it possible to find all files with a given inode? Efficiently?
It is possible to find all the paths to a file with a given inode, in general, using find
's -inum
option. But this has awful performance for typical filesystems. What options are there to improve performance?
Are there filesystems with special support for this task? Are there updatedb
-like utilities that index inodes?
The more general, the better the answer.
Postscript For more on requirements, see What's a good solution for file-tagging in linux?
hey there is a similar question on SO, maybe that will help.
https://stackoverflow.com/questions/1340263/what-is-the-fastest-way-to-find-all-the-file-with-the-same-inode
debugfs -R "ncheck your_inode_num" /dev/sda