common: add helper function _flakey_drop_and_remount
[xfstests-dev.git] / tests / generic / 101
index ea98a893931336a42d2af6b787f6d76182e77a5c..8771a173721ea0d6940d7e5e8f0c84fb0463f846 100755 (executable)
@@ -96,12 +96,7 @@ $XFS_IO_PROG -c "truncate 0" \
                -c "fsync" \
                $SCRATCH_MNT/bar
 
-_load_flakey_table $FLAKEY_DROP_WRITES
-_unmount_flakey
-
-# Allow writes again, mount to trigger log replay and validate file contents.
-_load_flakey_table $FLAKEY_ALLOW_WRITES
-_mount_flakey
+_flakey_drop_and_remount
 
 # We expect foo to have a size of 125Kb, the first 64Kb of data all having the
 # value 0xaa and the remaining 61Kb to be a hole (all bytes with value 0x00).