Instead of using O_SYNC, we are better off using O_DSYNC instead since we are only ever interested in data to be persisted to disk not the associated filesystem metadata. For reads we ask customers to turn off noatime, but instead we can proactively use O_NOATIME flag to avoid atime updates upon reads. |
||
---|---|---|
.. | ||
append-file_nix.go | ||
append-file_windows.go | ||
ioutil.go | ||
ioutil_test.go | ||
read_file.go | ||
read_file_noatime_notsupported.go | ||
read_file_noatime_supported.go |