Submitted by Amos Shapira (not verified) on Mon, 2008/08/04 - 23:39.
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".
fdlink will do that for you
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/