Messages in this thread |  | | Date | Wed, 19 Jun 1996 16:54:05 +0200 | From | Rogier Wolff <> | Subject | Re: Undelete in user space |
| |
Bryn Paul Arnold Jones wrote: > > On Mon, 17 Jun 1996, Tim Towers wrote: > [much stuff about user space solutions deleted] > > You can do it that way, but you can't then have saved files discarded to > free space, when it's needed.
Excuse me for jumping in in the middle of a discussion.
Undelete is a completely userspace implementable thing: your libc's unlink call should be substituted by something that renames the file to some /.wastebasket instead of simply using the system's unlink system call.
A deamon can watch the filesystem freespace, and delete files from /.wastebasket (using a local copy of the unlink system call..... :-) on an as-needed basis.
The problem is that I'd configure the deamon to leave say 5Mb of space free. At that moment "df" becomes useless, because it will always say "5.xx Mb free space". while actually I'd want to add in /.wastebasket.....
But this is also easily fixed in userspace.....
Roger.
-- ** Q: What's the difference between MicroSoft Windows and a virus? ** ** A: Apart from the fact that virusses install easier, none. ** ** EMail: R.E.Wolff@et.tudelft.nl * Tel +31-15-2783643 or +31-15-2137459 ** *** <a href="http://einstein.et.tudelft.nl/~wolff/">my own homepage</a> ***
|  |