Messages in this thread | | | From | Tim Towers <> | Subject | Undelete in user space | Date | Mon, 17 Jun 1996 22:02:23 +0100 (BST) |
| |
I don't believe that you need kernel support to undelete files.
Data is not cleared from the disk until the last process which has it opened closes it. All you have to do is have a daemon hold onto it until it is time to close, and hence remove the data, or until you send a signal to the daemon to put the file back, whereupon it may be relinked.
This means that the libc unlink call would need to be tweaked to send a signal to a root-owned 'dustbin daemon' letting it know what needs to be looked after, and utilities would have to be made available to alter when it worked and how recovery was handled.
Tim -- +-----------------------------------------------------------------------------+ | Timothy Towers, tim@lorien.demon.co.uk, Grimwiz on IRC, Linux/Net Guru | | Don't believe everything you read, hear or say | +------------------------PGP key available------------------------------------+
| |