lkml.org 
[lkml]   [1999]   [Mar]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: EXT2_UNRM_FL
Theodore Y. Ts'o writes:
> Date: Thu, 4 Mar 1999 10:26:46 +1100
> From: Richard Gooch <rgooch@atnf.csiro.au>
>
> (d) why not do it in userspace anyway? I did that years ago, although
> I "moved" files to /tmp, but it would be easy enough to move to a
> garbage/$LOGNAME directory on the same FS.
>
> Absolutely, agreed. As I said earlier, there are plenty of user-space
> "rm" replacements, and doing it in the kernel is almost certainly not
> worth the pain.
>
> It might be worth it for the kernel to add a wakeup to the undelete
> daemon telling it that space is low and it should remove some of the
> deleted files, but I'd want to see how well a strategy of polling every
> minute works (or doesn't work) before deciding whether the extra kernel
> bloat was worth it.

I don't understand why you even want to poll. My approach was to clean
up at safe-delete time: I just do a stat(2) to see if there is enough
space left. If not, I start purging. And in your ~/.logout you can
call the command to empty the wastebasket.
If you want to get more fancy, set up a cron job or add something to
the boot scripts to clean up.

Regards,

Richard....

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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