Re: EXT2_UNRM_FL

Richard Gooch (rgooch@atnf.csiro.au)
Fri, 5 Mar 1999 06:57:56 +1100


Pavel Machek writes:
> Hi!
>
> > OK, so do it in the C library, or write a wrapper for unlink(3) and
> > use LD_PRELOAD and override that way. That just leaves old statically
> > linked binaries. I don't consider this feature to be sufficiently
> > critical such that old static binaries need it.
>
> I actually did this one in LD_PRELOAD-able way.
>
> Showstoppers were:
>
> 1) Directory /trashcan grows _really_ quickly, and ext2 does poor job
> handling big directories

My utility preserves the full pathname in the wastebasket. So, for
example, if I remove /home/rgooch/fred then it gets moved to
$WASTEBASKET/home/rgooch/fred

All you need is a daemon like Ted suggested to poll the FS free blocks
count, and start purging when you fall below a threshold.

> 2) I never got to writing nice cleaner daemon.

Yep, that bit is useful :-)

> PS: Ask me for sources if you have solution for 2).

I've already got my own ;-)

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/