This is a read-only archive. Find the latest Linux articles, documentation, and answers at the new!

I'm working on something better - link them back

Posted by: Anonymous [ip:] on August 29, 2007 07:01 AM
I'm working on a little better solution - given the file name under the /proc file system (i.e. /proc/<pid>/fd/<fd>) and a new name for the file, my kernel module will link back that i-node to a name of your choice. Of course the new name must be on the same file system as the old one. The advantage is that twofold: 1. if the program changes the file then you get the updated one (since it's the actual file, not a copy) 2. If the file is too large to copy then you don't need the extra space.


Return to Bring back deleted files with lsof