method

fdatasync

ruby latest stable - Class: IO
fdatasync()
public

Immediately writes all buffered data in ios to disk.

If the underlying operating system does not support fdatasync(2), IO#fsync is called instead (which might raise a NotImplementedError).