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

Function Fsync

client/pkg/fileutil/sync.go:22–24  ·  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

20
21// Fsync is a wrapper around file.Sync(). Special handling is needed on darwin platform.
22func Fsync(f *os.File) error {
23 return f.Sync()
24}
25
26// Fdatasync is a wrapper around file.Sync(). Special handling is needed on linux platform.
27func Fdatasync(f *os.File) error {

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…