wounded in the line of duty
About a year ago I spent a weekend creating a kernel module and a user-space program to achieve just that - given a path to the file descriptor under /proc/nnn/fd/mmm and a name to link to it on the same file system, it'll create a directory entry for that inode.
It worked for me when tested a few times (tested it on loop-mounted filesystems so could test with a few types of filesystems and not care about disasters). I never completed it into a finished application but it's pretty useful as it is.
The nice thing with it is that you should be able to download, compile and install the module without taking the system down so you won't loose the process which keeps the file "alive".
Link to the SourceForge project (also in the "home page" above): https://sourceforge.net/projects/fdlink/
More information about formatting options
© 2007-2010 Dag Wieërs | Powered by Drupal and RHEL. | No legal statement, haha.