Displaying 2 results from an estimated 2 matches for "flakey_allow_writes".
2013 Nov 15
7
[PATCH 1/2] xfstests: add generic/321 to test fsync() on directories V2
..._fatal "fsync tester exited abnormally"
_md5_checksum $testfile
- _load_flakey_table $drop_writes
+ _load_flakey_table $FLAKEY_DROP_WRITES $lockfs
_unmount_flakey
#Ok mount so that any recovery that needs to happen is done
- _load_flakey_table $allow_writes
+ _load_flakey_table $FLAKEY_ALLOW_WRITES
_mount_flakey
_md5_checksum $testfile
@@ -134,23 +94,21 @@ _run_test()
_scratch_mkfs >> $seqres.full 2>&1
# Create a basic flakey device that will never error out
-$DMSETUP_PROG create flakey-test --table "$FLAKEY_TABLE"
-[ $? -ne 0 ] && _fatal "failed...
2013 Oct 28
0
[PATCH] xfstests: add generic/320 to test fsync() on directories V2
...details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write the Free Software Foundation,
+# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+#
+#
+# common functions for setting up and tearing down a dmflakey device
+
+FLAKEY_ALLOW_WRITES=0
+FLAKEY_DROP_WRITES=1
+
+_init_flakey()
+{
+ local BLK_DEV_SIZE=`blockdev --getsz $SCRATCH_DEV`
+ FLAKEY_DEV=/dev/mapper/flakey-test
+ FLAKEY_TABLE="0 $BLK_DEV_SIZE flakey $SCRATCH_DEV 0 180 0"
+ FLAKEY_TABLE_DROP="0 $BLK_DEV_SIZE flakey $SCRATCH_DEV 0 0 180 1 drop_writes"
+ $...