Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764807AbZDAAHY (ORCPT ); Tue, 31 Mar 2009 20:07:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757936AbZDAAHK (ORCPT ); Tue, 31 Mar 2009 20:07:10 -0400 Received: from thunk.org ([69.25.196.29]:38473 "EHLO thunker.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753071AbZDAAHJ (ORCPT ); Tue, 31 Mar 2009 20:07:09 -0400 Date: Tue, 31 Mar 2009 20:06:57 -0400 From: Theodore Tso To: Bodo Eggert <7eggert@gmx.de> Cc: Pavel Machek , Artem Bityutskiy , Artem Bityutskiy , Linux Kernel Mailing List Subject: Re: replace() system call needed (was Re: EXT4-ish "fixes" in UBIFS) Message-ID: <20090401000657.GH15063@mit.edu> Mail-Followup-To: Theodore Tso , Bodo Eggert <7eggert@gmx.de>, Pavel Machek , Artem Bityutskiy , Artem Bityutskiy , Linux Kernel Mailing List References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@mit.edu X-SA-Exim-Scanned: No (on thunker.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 722 Lines: 17 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. - Ted -- 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/