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

Interface FlakeyDevice

tests/robustness/powerfailure_test.go:234–242  ·  tests/robustness/powerfailure_test.go::FlakeyDevice

FlakeyDevice extends dmflakey.Flakey interface.

Source from the content-addressed store, hash-verified

232
233// FlakeyDevice extends dmflakey.Flakey interface.
234type FlakeyDevice interface {
235 // RootFS returns root filesystem.
236 RootFS() string
237
238 // PowerFailure simulates power failure with drop all the writes.
239 PowerFailure(mntOpt string) error
240
241 dmflakey.Flakey
242}
243
244// initFlakeyDevice returns FlakeyDevice instance with a given filesystem.
245func initFlakeyDevice(t *testing.T, name string, fsType dmflakey.FSType, mkfsOpt string, mntOpt string) FlakeyDevice {

Callers 2

doPowerFailureFunction · 0.65
doPowerFailureFunction · 0.65

Implementers 1

flakeyTtests/robustness/powerfailure_test.go

Calls

no outgoing calls

Tested by

no test coverage detected