Re: EXT2_UNRM_FL

Richard Gooch (rgooch@atnf.csiro.au)
Fri, 5 Mar 1999 07:23:25 +1100


Mike A. Harris writes:
> On Thu, 4 Mar 1999, Richard Gooch wrote:
> >(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.
> >
> >My rm replacement even purged the oldest files if the rubbish bin area
> >was too full.
>
> And what if someone deletes using mc, or some other filemanager,
> or their own code? It isn't transparent. I'd rather see it in
> the filesystem myself.

Write a wrapper for unlink() and use LD_PRELOAD. No need to bloat the
kernel.

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/