[lkml]   [1996]   [Jun]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: 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.....


** Q: What's the difference between MicroSoft Windows and a virus? **
** A: Apart from the fact that virusses install easier, none. **
** EMail: * Tel +31-15-2783643 or +31-15-2137459 **
*** <a href="">my own homepage</a> ***

 \ /
  Last update: 2005-03-22 13:37    [W:0.068 / U:0.552 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site