Re: ext3 and undeletion

Richard B. Johnson
2002-02-25T18:09:18Z

On Mon, 25 Feb 2002, Dan Maas wrote:

> > but I don't want a Netware filesystem running on Linux, I
> > want a *native* Linux filesystem (i.e. ext3) that has the
> > ability to queue deleted files should I configure it to.
>
> Rather than implementing this in the filesystem itself, I'd first try
> writing a libc shim that overrides unlink(). You could copy files to safety,
> or do anything else you want, before they actually get deleted...
>
> Regards,
> Dan
>
Yes... unlink() becomes `mv /path/filename /deleted/path/filename`
Simple. For idiot users, you can just make such an alias for those
who insist in doing `rm *` instead of `rm \*` after they had used
a wild-card as a file-name... It happens:

`ls *.* >files`
...is typoed to:
`ls *.>* files`

If somebody then recreates the same file and deletes it again -- tough.

Cheers,
Dick Johnson

Penguin : Linux version 2.4.1 on an i686 machine (797.90 BogoMips).

111,111,111 * 111,111,111 = 12,345,678,987,654,321