Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 http://superuser.com/questions/81563/whats-a-good-solution-for-file-tagging-in-linux/97245#97245

share|improve this question

2 Answers 2

up vote 2 down vote accepted

hey there is a similar question on SO, maybe that will help.

http://stackoverflow.com/questions/1340263/what-is-the-fastest-way-to-find-all-the-file-with-the-same-inode

share|improve this answer
debugfs -R "ncheck your_inode_num" /dev/sda
share|improve this answer
    
Do you know how debugfs builds up its map of inodes to paths? (From what little I know about ext2fs, the inode table only tells you about the blocks used by and permissions/types of the inodes.) Is it possible to use debugfs with a mounted partition? –  Charles Stewart Jun 24 '13 at 10:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.