Unix Shell - How to go from dev+inode to filename(s)?

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > May 2004 > How to go from dev+inode to filename(s)?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How to go from dev+inode to filename(s)?
kj

2004-05-19, 8:37 pm





If I have a file's device and inode, is there a simple way to get
the filename(s) associated with this dev+inode pair?

Thanks!

kj
--
NOTE: In my address everything before the period is backwards.
joe@invalid.address

2004-05-19, 8:37 pm

kj <socyl@987jk.com> writes:

> If I have a file's device and inode, is there a simple way to get
> the filename(s) associated with this dev+inode pair?


Only by searching the entire directory tree on the device looking for
the inode. And be aware that there can be more than one directory
entry for the same inode, so you still might have a problem.

Joe
--
"Surprise me"
- Yogi Berra when asked where he wanted to be buried.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com