FlakeyDevice extends dmflakey.Flakey interface.
| 232 | |
| 233 | // FlakeyDevice extends dmflakey.Flakey interface. |
| 234 | type 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. |
| 245 | func initFlakeyDevice(t *testing.T, name string, fsType dmflakey.FSType, mkfsOpt string, mntOpt string) FlakeyDevice { |
no outgoing calls
no test coverage detected