MCPcopy Index your code
hub / github.com/containerd/containerd / doSyncFs

Function doSyncFs

core/diff/apply/apply_linux.go:93–105  ·  view source on GitHub ↗
(file string)

Source from the content-addressed store, hash-verified

91}
92
93func doSyncFs(file string) error {
94 fd, err := os.Open(file)
95 if err != nil {
96 return fmt.Errorf("failed to open %s: %w", file, err)
97 }
98 defer fd.Close()
99
100 err = unix.Syncfs(int(fd.Fd()))
101 if err != nil {
102 return fmt.Errorf("failed to syncfs for %s: %w", file, err)
103 }
104 return nil
105}

Callers 1

applyFunction · 0.85

Calls 2

CloseMethod · 0.65
OpenMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…