This also introduces mkfs options, in case we need to accomodate for
non-default parameters here in the future.
Signed-off-by: Thomas Jungblut <tjungblu@redhat.com>
If file doesn't grow in 10 sec, bbolt won't trigger the following
errors:
* lackOfDiskSpace
* mapError
* resizeFileError
* unmapError
We should switch to kill instead of waiting for panic. In order to
trigger these errors, we should increase value size to 512.
Signed-off-by: Wei Fu <fuweid89@gmail.com>
Update case with a combination of EXT4 filesystem's commit setting and
unexpected exit event. That EXT4 filesystem's commit is to sync all its data
and metadata every seconds. The kernel can help us sync even if that
process has been killed. With different commit setting, we can simulate
that case that kernel syncs half part of dirty pages before power
failure. And for unexpected exit event, we can kill that process
randomly or panic at failpoint instead of fixed code path.
Signed-off-by: Wei Fu <fuweid89@gmail.com>
This commit is to add go-binding for go-dmflakey. It's used to simulate
powerfailure with common filesystems.
Signed-off-by: Wei Fu <fuweid89@gmail.com>