Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759679AbZDAUw0 (ORCPT ); Wed, 1 Apr 2009 16:52:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754564AbZDAUwQ (ORCPT ); Wed, 1 Apr 2009 16:52:16 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:39773 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752643AbZDAUwQ (ORCPT ); Wed, 1 Apr 2009 16:52:16 -0400 Date: Wed, 1 Apr 2009 22:52:01 +0200 From: Pavel Machek To: Theodore Tso , Bodo Eggert <7eggert@gmx.de>, Artem Bityutskiy , Artem Bityutskiy , Linux Kernel Mailing List Subject: Re: replace() system call needed (was Re: EXT4-ish "fixes" in UBIFS) Message-ID: <20090401205201.GI17808@elf.ucw.cz> References: <20090401000657.GH15063@mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090401000657.GH15063@mit.edu> X-Warning: Reading this can be dangerous to your mental health. User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1019 Lines: 24 On Tue 2009-03-31 20:06:57, Theodore Tso wrote: > On Tue, Mar 31, 2009 at 11:27:33PM +0200, Bodo Eggert wrote: > > This can be done using implicit logic: > > > > ->E.g. on close(), mark inodes without being sync()ed as poisoned. > > (I can think of more sophisticated logic, but ...) > > ->On completing the inode with the delayed allocations, unpoison it. > > ->Don't commit rename()s if the corresponding inode is poisoned. > > Send us patches if you think it's that easy to do what you are > proposing. I assure it's not easy. Well, implementing replace() syscall would be quite easy. Would you want such a patch? Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -- 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/