I'm writing a perl script to put this in more readable format and I want to
convert from dev/inum to file name. Is there a script out there that does
that already? Thanks in advance.
Well, for ext2 filesystems, you can do this to find the pathname
corresponding to inode #2306 on /dev/hda2:
debugfs /dev/hda2 -R "ncheck 2306"
... but you need read access on the block device.
I don't think there's a way to do this in general from userspace,
unfortunately, short of recursively searching the filesystem looking for
the inode with the matching inode #.
- Ted
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/