Project

General

Profile

Bug #5837

IO#fsync documentation typo quickfix

Added by kyledrake (Kyle Drake) over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
ruby -v:
1.9.3
Backport:
[ruby-core:<unknown>]

Description

The documentation IO#fsync says:

"Immediately writes all buffered data in ios to disk. Note that fsync differs from using IO#sync=. The latter ensures that data is flushed from Ruby’s buffers, but doesn’t not guarantee that the underlying operating system actually writes it to disk."

I believe the "doesn't not" should be changed to "does not". Fsync(2) traditionally guarantees that the operating system writes to disk, so I'm assuming that IO#sync does not and that IO#fsync does.

There is probably a better description that could be written here, but this clears up the typo for the interim.

Updated by tenderlovemaking (Aaron Patterson) over 8 years ago

  • Assignee changed from tenderlovemaking (Aaron Patterson) to drbrain (Eric Hodel)

Updated by drbrain (Eric Hodel) over 8 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF