>>> On Wed, 2 Aug 2006 11:17:12 +0530, "Kamal R. Prasad"
>>> <[EMAIL PROTECTED]> said:

[ ... ]

kamalp> I am trying to find a mechanism wherein given an inode
kamalp> -one can find the filename with which it is associated.

Ah, this indeed has little to do with JFS.

Some introductory tutorials on UNIX/POSIX/Linux file system naming
semantics (and how they differ from Multics naming semantics) may
help.

kamalp> The technique that comes to mind is to locate the dentry
kamalp> corresponding to it, and then the name field in the dentry.

Consider so-called hard links, or what happens if you do 'open'
followed by 'unlink' before 'close'.

Or you could get the sources to 'find' and check out how the
'-inum' option is implemented... :-)

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jfs-discussion mailing list
Jfs-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jfs-discussion

Reply via email to