Project

General

Profile

Actions

Bug #5837

closed

IO#fsync documentation typo quickfix

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

Status:
Closed
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 12 years ago

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

Updated by drbrain (Eric Hodel) about 12 years ago

  • Status changed from Open to Closed
Actions

Also available in: Atom PDF

Like0
Like0Like0