MCPcopy
hub / github.com/etcd-io/etcd / Fsync

Function Fsync

client/pkg/fileutil/sync_linux.go:25–27  ·  view source on GitHub ↗

Fsync is a wrapper around file.Sync(). Special handling is needed on darwin platform.

(f *os.File)

Source from the content-addressed store, hash-verified

23
24// Fsync is a wrapper around file.Sync(). Special handling is needed on darwin platform.
25func Fsync(f *os.File) error {
26 return f.Sync()
27}
28
29// Fdatasync is similar to fsync(), but does not flush modified metadata
30// unless that metadata is needed in order to allow a subsequent data retrieval

Callers

nothing calls this directly

Calls 1

SyncMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…