MCPcopy
hub / github.com/etcd-io/bbolt / unmount

Function unmount

tests/dmflakey/dmflakey_test.go:173–188  ·  view source on GitHub ↗
(target string)

Source from the content-addressed store, hash-verified

171}
172
173func unmount(target string) error {
174 for i := 0; i < 50; i++ {
175 if err := unix.Unmount(target, 0); err != nil {
176 switch err {
177 case unix.EBUSY:
178 time.Sleep(500 * time.Millisecond)
179 continue
180 case unix.EINVAL:
181 default:
182 return fmt.Errorf("failed to umount %s: %w", target, err)
183 }
184 }
185 return nil
186 }
187 return unix.EBUSY
188}

Callers 4

TestBasicFunction · 0.85
TestDropWritesExt4Function · 0.85
TestErrorWritesExt4Function · 0.85
initFlakeyFunction · 0.85

Calls 1

ErrorfMethod · 0.65

Tested by

no test coverage detected