search for: flakey_drop_writes

Displaying 2 results from an estimated 2 matches for "flakey_drop_writes".

2013 Nov 15
7
[PATCH 1/2] xfstests: add generic/321 to test fsync() on directories V2
...0 - buffered | 1 - O_DIRECT> - allow_writes=0 - drop_writes=1 test_num=$1 direct_opt="" @@ -115,11 +75,11 @@ _run_test() [ $? -ne 0 ] && _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 # C...
2013 Oct 28
0
[PATCH] xfstests: add generic/320 to test fsync() on directories V2
...uld 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" + $DMSETUP_PROG create fl...