Mark Watson wrote:

>>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
> 

On Linux at least, closing a file does not guarantee that the data will 
be written to disk.

Leslie
pretsel on #ruby-lang