Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 26 Feb 2002 11:05:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 26 Feb 2002 11:05:14 -0500 Received: from adsl-63-194-239-202.dsl.lsan03.pacbell.net ([63.194.239.202]:48637 "EHLO mmp-linux.matchmail.com") by vger.kernel.org with ESMTP id ; Tue, 26 Feb 2002 11:05:11 -0500 Date: Tue, 26 Feb 2002 08:05:44 -0800 From: Mike Fedyk To: "H. Peter Anvin" Cc: linux-kernel@vger.kernel.org Subject: Re: ext3 and undeletion Message-ID: <20020226160544.GD4393@matchmail.com> Mail-Followup-To: "H. Peter Anvin" , linux-kernel@vger.kernel.org In-Reply-To: <05cb01c1be1e$c490ba00$1a01a8c0@allyourbase> <20020225172048.GV20060@matchmail.com> <02022518330103.01161@grumpersII> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.27i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 25, 2002 at 09:53:08PM -0800, H. Peter Anvin wrote: > Followup to: <02022518330103.01161@grumpersII> > By author: Tom Rauschenbach > In newsgroup: linux.dev.kernel > > > > On Monday 25 February 2002 12:20, Mike Fedyk wrote: > > > On Mon, Feb 25, 2002 at 12:06:29PM -0500, 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... > > > > > > Yep, more portable. > > > > But it only works if everything get linked with the new library. > > > > What's a lot worse is that the kernel cannot chose to garbage-collect > it. One reason to put undelete in the kernel is that that files in > limbo can be reclaimed as the disk space is needed for other users, > and you don't risk getting ENOSPC due to the disk being full with > ghosts. > True, and it could to tricks like listing space used for undelete as "free" in addition to dynamic garbage collection. Though, with a daemon checking the dirs often, or using Daniel's idea of a socket between unlink() in glibc and an undelete daemon could work quite similairly. Also, there wouldn't be any interaction with filesystem internals, and userspace would probably work better with non-posix type filesystems (vfat, hfs, etc) too. IOW, there seems to be little gain to having an kernelspace solution. Mike - 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/