From: Robert Klemme Date: 2006-07-05T03:09:55+09:00 Subject: Re: Get file by inode number? 2006/7/4, Tim Bray : > > On Jul 4, 2006, at 9:13 AM, Timo Hoepfner wrote: > > > Hi, > > > > is there a way to retrieve a file's path by inode number? Basically > > the opposite of: > > In principle, this is may be a bad idea. To start with, in *n*x > filesystems, a file can have lots of different pathnames, via hard > and soft links. -Tim Also, these file systems store only forward mappings, i.e. from file name to inode number but not the reverse. So retrieving a file name from an inode number basically means scanning the complete file system and checking each file's inode number. Definitively something that does not fall into the category "efficient". :-) Kind regards robert -- Have a look: http://www.flickr.com/photos/fussel-foto/