From: mawatson@... (Mark Watson) Date: 2002-01-19T09:59:26+09:00 Subject: Re: [RCR] #59 Add fsync method to IO class > We have to make up consensus about fdatasync. Choose one: > > (1) fsync and fdatasync; NOP if not exist > (2) fsync and fdatasync; error if not exist > (3) fsync only; NOP if not exist > (4) fsync only; error if not exist > (5) we don't need both > > I won't vote for 5; maybe I'm going to vote for 4. > matz. I probably missing something, but wouldn't closing and reopening the file have the same effect as fsync? If that is the case you could change 4. to: fsync only; close and reopen if not exists