From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hifumi Hisashi Subject: Re: [PATCH] fix problems related to journaling in Reiserfs Date: Thu, 01 Sep 2005 09:02:43 +0900 Message-ID: <43164523.7030301@lab.ntt.co.jp> References: <6.0.0.20.2.20050831191551.03fdbac0@129.60.53.12> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: reiser@namesys.com, reiserfs-dev@namesys.com, reiserfs-list@namesys.com, linux-fsdevel@vger.kernel.org Return-path: Received: from tama5.ecl.ntt.co.jp ([129.60.39.102]:19360 "EHLO tama5.ecl.ntt.co.jp") by vger.kernel.org with ESMTP id S932468AbVIAADU (ORCPT ); Wed, 31 Aug 2005 20:03:20 -0400 To: michael chang In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org michael chang wrote: >Surely we don't want this. Look at the papers on Namesys's websites, >about the atomicaty and the banking example. But that's just my >personal opinion. Besides, I believe it's more likely that usually >the power gets lost than the SCSI or IDE cable gets disconnected, >AFAIK... > > A write() syscall with the O_SYNC flag must ensure that not only file data block but also journal (meta-data update) are written to a disk when this syscall end. But, current implementation of Reiserfs does not do that. If a system crashes, a filesystem recovers from the journal transaction log. But, Reiserfs may not recover in some cases. I checked other filesystems like ext3, jfs, xfs. Those filesystem write transactions to a disk everytime write() with the O_SYNC is performed. In those filesystem, I have no trouble mentioned above. I should say, the Reiserfs would be "un"reliable filesystem..........