From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Artem B. Bityuckiy" Subject: Re: filesystem transactions API Date: Tue, 26 Apr 2005 20:07:13 +0400 Message-ID: <426E6731.5000703@oktetlabs.ru> References: <20050424211942.GN13052@parcelfarce.linux.theplanet.co.uk> <20050426134629.GU16169@viasys.com> <20050426141426.GC10833@mail.shareable.org> <426E4EBD.6070104@oktetlabs.ru> <1114530002.29907.21.camel@polarbear.fsl.cs.sunysb.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: Jamie Lokier , Ville Herva , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Return-path: Received: from [213.170.72.194] ([213.170.72.194]:10893 "EHLO shelob.oktetlabs.ru") by vger.kernel.org with ESMTP id S261654AbVDZQHR (ORCPT ); Tue, 26 Apr 2005 12:07:17 -0400 To: "Charles P. Wright" In-Reply-To: <1114530002.29907.21.camel@polarbear.fsl.cs.sunysb.edu> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Charles P. Wright wrote: > Atomicity is difficult, because you have lots of caches each with their > own bits of state (e.g., the inode/dentry caches). Assuming your > transaction is committed that isn't so much of a problem, but once you > have on rollback you need to undo any changes to those caches. I guess if you do synchronization before unlocking all is OK. Roll-back means deleting partially written things and restore old things, then run fsyncs. Whys this may be not enough? -- Best regards, Artem B. Bityuckiy Oktet Labs (St. Petersburg), Software Engineer. +78124286709 (office) +79112449030 (mobile) E-mail: dedekind@oktetlabs.ru, web: http://www.oktetlabs.ru