Reply to comment

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/

Reply

Please refrain from adding URLs to unrelated or commercial websites. This site is moderated and comments with inappropriate links are rejected. Thank you for your understanding.
The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options