Re: ext3 and undeletion

Andreas Dilger
2002-02-28T22:43:15Z

On Feb 28, 2002 16:05 +0100, Andreas Ferber wrote:
> On Tue, Feb 26, 2002 at 01:34:27PM -0500, Richard B. Johnson wrote:
> > The disk space can't run out because you have simply moved
> > files that didn't exceed the disk space before they were moved.
>
> But a user will end up unable to /free/ any diskspace. User tries
> something, generates a /huge/ error log filling up the quota/disk,
> oops, has to call sysadmin before work can go on... Five minutes
> later, the fix just tried didn't work, oops, has to call admin again,
> and so on. Do you /really/ want this?

This is just being silly. Obviously the user will be able to delete
files from the .undelete directory, and a daemon to do automatic
cleanup was also proposed. Thinking anything else is just being obtuse.

You could have the unlink() wrapper check that there is still some
free space/quota when it is doing the move, and if not it deletes
old files until there is free space/quota. The daemon just does this
for you in the background to avoid slowing things down.

Cheers, Andreas
--
Andreas Dilger