Re: Undelete files on ext3 ??

Jan Hudec (bulb@ucw.cz)
Wed, 8 Jan 2003 09:00:05 +0100


On Wed, Jan 08, 2003 at 12:01:34AM -0500, Gerhard Mack wrote:
> On Tue, 7 Jan 2003, Andreas Dilger wrote:
>
> > Date: Tue, 7 Jan 2003 11:55:44 -0700
> > From: Andreas Dilger <adilger@clusterfs.com>
> > To: Richard B. Johnson <root@chaos.analogic.com>
> > Cc: Max Valdez <maxvaldez@yahoo.com>, Jan Hudec <bulb@ucw.cz>,
> > kernel <linux-kernel@vger.kernel.org>
> > Subject: Re: Undelete files on ext3 ??
> >
> > On Jan 07, 2003 13:17 -0500, Richard B. Johnson wrote:
> > > Therefore, it's time for somebody to put a 'dumpster` in all the Linux
> > > file-systems. Somebody should then modify `rm` and the kernel unlink
> > > to `mv' files to the dumpster directory on the file-system, instead of
> > > really deleting them. Then, just like the Redmond stuff, a separate
> > > program can be used to clear out the "dumpster" or `mv` them back.
> >
> > This is very FAQ. Please see the l-k archives for any year to find
> > lengthy discussions about this.
> >
>
> Funny my gnome2 install has a wastebasket and last I checked if you open a
> command shell in windows and del *.* you are screwed anyhow.
>
> So we have exactly the same functionality windows does.

Yes. But we could do better. Since no program uses the __syscall
interface directly, wraping unlink in libc would affect all programs
including rm. It could even be done withou recompiling anything using
LD_PRELOAD.

-------------------------------------------------------------------------------
Jan 'Bulb' Hudec <bulb@ucw.cz>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/