search for: _scratch_mkfs

Displaying 4 results from an estimated 4 matches for "_scratch_mkfs".

2013 May 03
3
[PATCH] xfstests: unmount scratch mnt in test 307
...'t use /etc/mtab then it will spit out a different device for the mounted device. So say we have SCRATCH_DEV_POOL="/dev/sda /dev/sdb /dev/sdc" we will turn this into SCRATCH_DEV="/dev/sda" SCRATCH_DEV_POOL="/dev/sdb /dev/sdc" and then when you mkfs this you do _scratch_mkfs $SCRATCH_DEV_POOL which turns into this mkfs.btrfs /dev/sdb /dev/sdc /dev/sda becuase we do mkfs $* $SCRATCH_DEV Then btrfs will always show the lowest devid in /proc/mounts to maintain consistency, so even though we do mount /dev/sda $SCRATCH_MNT, you will see /dev/sdb as the mounted device in...
2013 Nov 15
7
[PATCH 1/2] xfstests: add generic/321 to test fsync() on directories V2
...$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 to create flakey device" - +_init_flakey _mount_flakey buffered=0 direct=1 for...
2013 Oct 28
0
[PATCH] xfstests: add generic/320 to test fsync() on directories V2
...$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 to create flakey device" - +_init_flakey _mount_flakey buffered=0 direct=1 for...
2013 May 20
1
[PATCH] xfstests: btrfs 308: regression test for btrfs send
...=1 # failure is the default! + +_cleanup() +{ + rm -f $tmp.* +} + +trap "_cleanup ; exit \$status" 0 1 2 3 15 + +# get standard environment, filters and checks +. ./common/rc +. ./common/filter + +# real QA test starts here +_supported_fs btrfs +_supported_os Linux +_require_scratch + +_scratch_mkfs > /dev/null 2>&1 +_scratch_mount + +dd if=/dev/zero of=$SCRATCH_MNT/foo bs=1M count=10 > /dev/null 2>&1 +sync +$BTRFS_UTIL_PROG subvol snap -r $SCRATCH_MNT $SCRATCH_MNT/snap > /dev/null 2>&1 +dd if=/dev/zero of=$SCRATCH_MNT/foo bs=1M count=10 oflag=append > /dev/nul...