lkml.org 
[lkml]   [1996]   [Jun]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectUndelete in user space
Date
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------------------------------------+

\
 
 \ /
  Last update: 2005-03-22 13:37    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site