Hello Hifumi Hisashi wrote: > 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.
yes > But, current implementation of Reiserfs does not do that. If a system > crashes, > a filesystem recovers from the journal transaction log. There is nothing wrong that reiserfs replays journal after system crash. But, Reiserfs > may not > recover in some cases. Well, we used to think that reiserfs's O_SYNC support works. It is very surprising that it does not. > 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.......... > > >
