MCPcopy
hub / github.com/opencontainers/runc / readSyncFull

Function readSyncFull

libcontainer/sync.go:161–170  ·  view source on GitHub ↗
(pipe *syncSocket, expected syncType)

Source from the content-addressed store, hash-verified

159}
160
161func readSyncFull(pipe *syncSocket, expected syncType) (syncT, error) {
162 sync, err := doReadSync(pipe)
163 if err != nil {
164 return sync, err
165 }
166 if sync.Type != expected {
167 return sync, fmt.Errorf("unexpected synchronisation flag: got %q, expected %q", sync.Type, expected)
168 }
169 return sync, nil
170}
171
172func readSync(pipe *syncSocket, expected syncType) error {
173 sync, err := readSyncFull(pipe, expected)

Callers 2

readSyncFunction · 0.85
setupAndMountToRootfsFunction · 0.85

Calls 1

doReadSyncFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…