]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
fstests: redirect fsstress' stdout to $seqres.full instead of /dev/null
authorFilipe Manana <fdmanana@suse.com>
Tue, 3 Oct 2023 11:57:44 +0000 (12:57 +0100)
committerZorro Lang <zlang@kernel.org>
Thu, 5 Oct 2023 14:32:01 +0000 (22:32 +0800)
Several tests are redirecting the output of fsstress to /dev/null and this
makes it harder to debug a test failure because we have no way of knowing
what was the seed used by fsstress, as fsstress outputs the seed it uses
to stdout. Very often when such a test fails, I have to go modify to
redirect stdout to the $seqres.full file and then run it in a loop until
I find a seed that causes a failure.

So modify all tests that redirect fsstress' output to /dev/null to instead
redirect it to the $seqres.full file. Note that for some tests I've added
the style ">> $seqres.full" (with a space after >>) while for others I did
">>$seqres.full" (no space) - the reason for this was to keep style
consistency within each test case.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Acked-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
35 files changed:
tests/btrfs/028
tests/btrfs/049
tests/btrfs/060
tests/btrfs/061
tests/btrfs/062
tests/btrfs/063
tests/btrfs/064
tests/btrfs/065
tests/btrfs/066
tests/btrfs/067
tests/btrfs/068
tests/btrfs/069
tests/btrfs/070
tests/btrfs/071
tests/btrfs/072
tests/btrfs/073
tests/btrfs/074
tests/btrfs/136
tests/btrfs/192
tests/btrfs/232
tests/btrfs/261
tests/btrfs/286
tests/ext4/057
tests/ext4/307
tests/generic/068
tests/generic/269
tests/generic/409
tests/generic/410
tests/generic/411
tests/generic/589
tests/xfs/051
tests/xfs/057
tests/xfs/297
tests/xfs/305
tests/xfs/538

index c4080c950c465fa28ad40ce1bcc1ae967bbc2991..d860974ec207320d21929092d7c0eedf0c38b95f 100755 (executable)
@@ -35,7 +35,7 @@ args=`_scale_fsstress_args -z \
        -f fsync=10 -n 100000 -p 2 \
        -d $SCRATCH_MNT/stress_dir`
 echo "Run fsstress $args" >>$seqres.full
-$FSSTRESS_PROG $args >/dev/null 2>&1 &
+$FSSTRESS_PROG $args >>$seqres.full &
 fsstress_pid=$!
 
 echo "Start balance" >>$seqres.full
index 9569c141734b7ed4c48b16f5a464dcbdc49ae68c..c48e4087cc88b68b7d13d8208649677b9d4d344d 100755 (executable)
@@ -42,7 +42,7 @@ args=`_scale_fsstress_args -z \
        -f write=10 -f creat=10 \
        -n 1000 -p 2 -d $SCRATCH_MNT/stress_dir`
 echo "Run fsstress $args" >>$seqres.full
-$FSSTRESS_PROG $args >/dev/null 2>&1
+$FSSTRESS_PROG $args >>$seqres.full
 
 # Start and pause balance to ensure it will be restored on remount
 echo "Start balance" >>$seqres.full
index 7dd4d2af74cd7b81b2420e7b0fbd9df00490a90c..a018489160273d5bba6bb4658e1c74e5f9284d93 100755 (executable)
@@ -38,7 +38,7 @@ run_test()
 
        args=`_scale_fsstress_args -p 20 -n 100 $FSSTRESS_AVOID -d $SCRATCH_MNT/stressdir`
        echo "Run fsstress $args" >>$seqres.full
-       $FSSTRESS_PROG $args >/dev/null 2>&1 &
+       $FSSTRESS_PROG $args >>$seqres.full &
        fsstress_pid=$!
 
        echo -n "Start balance worker: " >>$seqres.full
index 55f5625b54909fef73c2e0f9dfdfce2852e0cd0b..c101041360cebb4d6a0e278ac0d0a063b2a9a98b 100755 (executable)
@@ -36,7 +36,7 @@ run_test()
 
        args=`_scale_fsstress_args -p 20 -n 100 $FSSTRESS_AVOID -d $SCRATCH_MNT/stressdir`
        echo "Run fsstress $args" >>$seqres.full
-       $FSSTRESS_PROG $args >/dev/null 2>&1 &
+       $FSSTRESS_PROG $args >>$seqres.full &
        fsstress_pid=$!
 
        echo -n "Start balance worker: " >>$seqres.full
index 10f95111f8ffe582e51ced89b3a69b9fd04a2713..818a0156668d8c89aa1148de26683b488610191d 100755 (executable)
@@ -37,7 +37,7 @@ run_test()
 
        args=`_scale_fsstress_args -p 20 -n 100 $FSSTRESS_AVOID -d $SCRATCH_MNT/stressdir`
        echo "Run fsstress $args" >>$seqres.full
-       $FSSTRESS_PROG $args >/dev/null 2>&1 &
+       $FSSTRESS_PROG $args >>$seqres.full &
        fsstress_pid=$!
 
        echo -n "Start balance worker: " >>$seqres.full
index cef80771d457ea1ce65162fc9c7426776d22b150..2f771baf7cea2b0e4b59f57421a698c0e0dee043 100755 (executable)
@@ -36,7 +36,7 @@ run_test()
 
        args=`_scale_fsstress_args -p 20 -n 100 $FSSTRESS_AVOID -d $SCRATCH_MNT/stressdir`
        echo "Run fsstress $args" >>$seqres.full
-       $FSSTRESS_PROG $args >/dev/null 2>&1 &
+       $FSSTRESS_PROG $args >>$seqres.full &
        fsstress_pid=$!
 
        echo -n "Start balance worker: " >>$seqres.full
index f29e68ba96afbcf4a7d4e0a119025affe3639908..e9b46ce665775de5f64dad77698b07f30dd496e3 100755 (executable)
@@ -46,7 +46,7 @@ run_test()
 
        args=`_scale_fsstress_args -p 20 -n 100 $FSSTRESS_AVOID -d $SCRATCH_MNT/stressdir`
        echo "Run fsstress $args" >>$seqres.full
-       $FSSTRESS_PROG $args >/dev/null 2>&1 &
+       $FSSTRESS_PROG $args >>$seqres.full &
        fsstress_pid=$!
 
        # Start both balance and replace in the background.
index b6c9dbadfd324a8d5d0ab603644daa8c0dd32c6d..c4b6aafe7d263e9b85b7ec521cc28ede2995db2f 100755 (executable)
@@ -46,7 +46,7 @@ run_test()
 
        args=`_scale_fsstress_args -p 20 -n 100 $FSSTRESS_AVOID -d $SCRATCH_MNT/stressdir`
        echo "Run fsstress $args" >>$seqres.full
-       $FSSTRESS_PROG $args >/dev/null 2>&1 &
+       $FSSTRESS_PROG $args >>$seqres.full &
        fsstress_pid=$!
 
        # make sure the stop sign is not there
index 8d12af616d89a11b6cd12e8f0f1e196af31d3f32..a29034bb3a7eecbbf9d93af0db782833a8c90b44 100755 (executable)
@@ -38,7 +38,7 @@ run_test()
 
        args=`_scale_fsstress_args -p 20 -n 100 $FSSTRESS_AVOID -d $SCRATCH_MNT/stressdir`
        echo "Run fsstress $args" >>$seqres.full
-       $FSSTRESS_PROG $args >/dev/null 2>&1 &
+       $FSSTRESS_PROG $args >>$seqres.full &
        fsstress_pid=$!
 
        # make sure the stop sign is not there
index 970a23c470fb583e553c719a4515f79a4596b0f6..709db155d20934888371966b171f3bcc68374197 100755 (executable)
@@ -39,7 +39,7 @@ run_test()
 
        args=`_scale_fsstress_args -p 20 -n 100 $FSSTRESS_AVOID -d $SCRATCH_MNT/stressdir`
        echo "Run fsstress $args" >>$seqres.full
-       $FSSTRESS_PROG $args >/dev/null 2>&1 &
+       $FSSTRESS_PROG $args >>$seqres.full &
        fsstress_pid=$!
 
        # make sure the stop sign is not there
index e0bcc2ac4930a30064b1364a4ebc96f2392a8399..15fd41db97b40d97914e1047f70ad0094cc2976e 100755 (executable)
@@ -39,7 +39,7 @@ run_test()
 
        args=`_scale_fsstress_args -p 20 -n 100 $FSSTRESS_AVOID -d $SCRATCH_MNT/stressdir`
        echo "Run fsstress $args" >>$seqres.full
-       $FSSTRESS_PROG $args >/dev/null 2>&1 &
+       $FSSTRESS_PROG $args >>$seqres.full &
        fsstress_pid=$!
 
        # make sure the stop sign is not there
index 6e798a2e5061129767528f7663c8da472300f382..139dde48a5f44c7c218c824fdd6c42f2bcce69f4 100755 (executable)
@@ -44,7 +44,7 @@ run_test()
 
        args=`_scale_fsstress_args -p 20 -n 100 $FSSTRESS_AVOID -d $SCRATCH_MNT/stressdir`
        echo "Run fsstress $args" >>$seqres.full
-       $FSSTRESS_PROG $args >/dev/null 2>&1 &
+       $FSSTRESS_PROG $args >>$seqres.full &
        fsstress_pid=$!
 
        echo -n "Start replace worker: " >>$seqres.full
index f2e61ad392cd8ccbd85f39dbcbe51bbe23afcd66..54aa275c7d0f724bd98019aede9a97614f121b70 100755 (executable)
@@ -45,7 +45,7 @@ run_test()
 
        args=`_scale_fsstress_args -p 20 -n 100 $FSSTRESS_AVOID -d $SCRATCH_MNT/stressdir`
        echo "Run fsstress $args" >>$seqres.full
-       $FSSTRESS_PROG $args >/dev/null 2>&1 &
+       $FSSTRESS_PROG $args >>$seqres.full &
        fsstress_pid=$!
 
        echo -n "Start replace worker: " >>$seqres.full
index 40230b112cbc03d74a90a655ff961821f8dc0bf6..6ebbd8cc3c54fcca66e2f69e83f06dbc3a47b5c0 100755 (executable)
@@ -44,7 +44,7 @@ run_test()
 
        args=`_scale_fsstress_args -p 20 -n 100 $FSSTRESS_AVOID -d $SCRATCH_MNT/stressdir`
        echo "Run fsstress $args" >>$seqres.full
-       $FSSTRESS_PROG $args >/dev/null 2>&1 &
+       $FSSTRESS_PROG $args >>$seqres.full &
        fsstress_pid=$!
 
        echo -n "Start replace worker: " >>$seqres.full
index bcb0ea2546a65b35a1fc09f62f5bc466600d82f9..4b6b6fb57231729713a09d03b686ee02a7fed64d 100755 (executable)
@@ -37,7 +37,7 @@ run_test()
 
        args=`_scale_fsstress_args -p 20 -n 100 $FSSTRESS_AVOID -d $SCRATCH_MNT/stressdir`
        echo "Run fsstress $args" >>$seqres.full
-       $FSSTRESS_PROG $args >/dev/null 2>&1 &
+       $FSSTRESS_PROG $args >>$seqres.full &
        fsstress_pid=$!
 
        echo -n "Start scrub worker: " >>$seqres.full
index 26c5deb6c2a27a04f3b40e0eb4692c0809041ed7..b1604f94989aafdc503074bb4243c1ca3de839d6 100755 (executable)
@@ -36,7 +36,7 @@ run_test()
 
        args=`_scale_fsstress_args -p 20 -n 100 $FSSTRESS_AVOID -d $SCRATCH_MNT/stressdir`
        echo "Run fsstress $args" >>$seqres.full
-       $FSSTRESS_PROG $args >/dev/null 2>&1 &
+       $FSSTRESS_PROG $args >>$seqres.full &
        fsstress_pid=$!
 
        echo -n "Start scrub worker: " >>$seqres.full
index 92e25c7cc24afe5271ed093c9e20c7e5d8e8fd72..9b22c62029f0bb75960747dd9cc6572cc348a4da 100755 (executable)
@@ -37,7 +37,7 @@ run_test()
 
        args=`_scale_fsstress_args -p 20 -n 100 $FSSTRESS_AVOID -d $SCRATCH_MNT/stressdir`
        echo "Run fsstress $args" >>$seqres.full
-       $FSSTRESS_PROG $args >/dev/null 2>&1 &
+       $FSSTRESS_PROG $args >>$seqres.full &
        fsstress_pid=$!
 
        echo -n "Start defrag worker: " >>$seqres.full
index b9ab8270f039108907d0c9a8a631139651b3af26..70e836a50c7b2c06ff6a8a428a94d174ae58a1a5 100755 (executable)
@@ -39,7 +39,7 @@ populate_data(){
        mkdir -p $data_path
        args=`_scale_fsstress_args -p 20 -n 100 $FSSTRESS_AVOID -d $data_path`
        echo "Run fsstress $args" >>$seqres.full
-       $FSSTRESS_PROG $args >/dev/null 2>&1 &
+       $FSSTRESS_PROG $args >>$seqres.full &
        fsstress_pid=$!
        wait $fsstress_pid
 }
index ea261b34fbdabc636b81839a7d19dc2d6857942d..80588a3c993b475a71cc467aa010a2bf43603ab2 100755 (executable)
@@ -140,7 +140,7 @@ pid1=$!
 delete_workload &
 pid2=$!
 
-"$FSSTRESS_PROG" $fsstress_args > /dev/null &
+"$FSSTRESS_PROG" $fsstress_args >> $seqres.full &
 sleep $runtime
 
 "$KILLALL_PROG" -q "$FSSTRESS_PROG" &> /dev/null
index debe070bbca24dd99e8862ec5638276664cb5655..84c39c071d5296c198cc18223f6401e292e1401f 100755 (executable)
@@ -25,7 +25,7 @@ writer()
 
        while true; do
                args=`_scale_fsstress_args -p 20 -n 1000 $FSSTRESS_AVOID -d $SCRATCH_MNT/stressdir`
-               $FSSTRESS_PROG $args >/dev/null 2>&1
+               $FSSTRESS_PROG $args >> $seqres.full
        done
 }
 
index 50173de351f3829c9504f4550021ece9ff0d99e4..58fa8e758a448593240e456787ba742b0040ae96 100755 (executable)
@@ -36,7 +36,7 @@ prepare_fs()
        # Then use fsstress to generate some extra contents.
        # Disable setattr related operations, as it may set NODATACOW which will
        # not allow us to use btrfs checksum to verify the content.
-       $FSSTRESS_PROG -f setattr=0 -d $SCRATCH_MNT -w -n 3000 > /dev/null 2>&1
+       $FSSTRESS_PROG -f setattr=0 -d $SCRATCH_MNT -w -n 3000 >> $seqres.full
        sync
 
        # Save the fssum of this fs
index f1ee129c43dee481b92aab537417796698ae05e3..71f6d4bda845786068ed5b482d02456a7905f954 100755 (executable)
@@ -36,7 +36,7 @@ workload()
        # Use nodatasum mount option, so all data won't have checksum.
        _scratch_mount -o nodatasum
 
-       $FSSTRESS_PROG -p 10 -n 200 -d $SCRATCH_MNT > /dev/null 2>&1
+       $FSSTRESS_PROG -p 10 -n 200 -d $SCRATCH_MNT >> $seqres.full
        sync
 
        # Generate fssum for later verification, here we only care
index 4006a07cf5336d4a9c5476df0a0cacd93d528cdb..6babedb27c780a576ff956c09f4c84301d756ea6 100755 (executable)
@@ -42,7 +42,7 @@ _scratch_mount
 
 # Begin fsstress while modifying UUID
 fsstress_args=$(_scale_fsstress_args -d $SCRATCH_MNT -p 15 -n 999999)
-$FSSTRESS_PROG $fsstress_args > /dev/null 2>&1 &
+$FSSTRESS_PROG $fsstress_args >> $seqres.full &
 fsstress_pid=$!
 
 for n in $(seq 1 20); do
index db83a083321f4910005898fb0ee62423d6e0fdd8..8b1cfc9e4c62abc393dc8e7d5d0e092c22501741 100755 (executable)
@@ -21,7 +21,7 @@ _workout()
        out=$SCRATCH_MNT/fsstress.$$
        args=`_scale_fsstress_args -p4 -n999 -f setattr=1 $FSSTRESS_AVOID -d $out`
        echo "fsstress $args" >> $seqres.full
-       $FSSTRESS_PROG $args > /dev/null 2>&1
+       $FSSTRESS_PROG $args >> $seqres.full
        find $out -type f > $out.list
        cat $out.list | xargs  md5sum > $out.md5sum
        usage=`du -sch $out | tail -n1 | gawk '{ print $1 }'`
index eeddf6d1d99c61d41397a23290664f4f438549d9..af527fee2b5db0ec741cbb89bcec9157548c55c7 100755 (executable)
@@ -57,7 +57,7 @@ touch $tmp.running
       # We do both read & write IO - not only is this more realistic,
       # but it also potentially tests atime updates
       FSSTRESS_ARGS=`_scale_fsstress_args -d $STRESS_DIR -p $procs -n $nops $FSSTRESS_AVOID`
-      $FSSTRESS_PROG $FSSTRESS_ARGS > /dev/null 2>&1
+      $FSSTRESS_PROG $FSSTRESS_ARGS >>$seqres.full
     done
 
     rm -r $STRESS_DIR/*
index 838e696da7276750b00a5a7f43d22e5642e993fd..b852f6bf7e094d1948a9e25062cc5bad77789d03 100755 (executable)
@@ -23,7 +23,7 @@ _workout()
        out=$SCRATCH_MNT/fsstress.$$
        args=`_scale_fsstress_args -p128 -n999999999 -f setattr=1 $FSSTRESS_AVOID -d $out`
        echo "fsstress $args" >> $seqres.full
-       $FSSTRESS_PROG $args > /dev/null 2>&1 &
+       $FSSTRESS_PROG $args >> $seqres.full &
        pid=$!
        echo "Run dd writers in parallel"
        for ((i=0; i < num_iterations; i++))
index 7a5004ed822ad8f600503b0091ac9f087e1b0c56..432befaca6826487f3b610fb38ee0cc7d7bacc4c 100755 (executable)
@@ -58,7 +58,7 @@ fs_stress()
                       -f chown=1 \
                       -f getdents=1 \
                       -f fiemap=1 \
-                      -d $target >/dev/null
+                      -d $target >>$seqres.full
        sync
 }
 
index f35f2f4a35eab937ed5856464d31462bd130152e..8cc36d9f381bdef1514709c49cee4f87c89d185d 100755 (executable)
@@ -66,7 +66,7 @@ fs_stress()
                       -f chown=1 \
                       -f getdents=1 \
                       -f fiemap=1 \
-                      -d $target >/dev/null
+                      -d $target >>$seqres.full
        sync
 }
 
index 9852a49df2830e2bbc329b08481f22565e18ad9f..b2b8d550eb81078d093fd3b54418321be1a15d73 100755 (executable)
@@ -49,7 +49,7 @@ fs_stress()
                       -f chown=1 \
                       -f getdents=1 \
                       -f fiemap=1 \
-                      -d $target >/dev/null
+                      -d $target >>$seqres.full
        sync
 }
 
index c03cf1fca20368c28db563233a7b730fef76af12..bfc7407a1c08bce4c00057017ac357587a95da10 100755 (executable)
@@ -48,7 +48,7 @@ fs_stress()
 {
        local target=$1
 
-       $FSSTRESS_PROG -n 50 -p 3 -d $target >/dev/null
+       $FSSTRESS_PROG -n 50 -p 3 -d $target >>$seqres.full
        sync
 }
 
index ea70cb50b25296cdd4abe0607cf93d9129b08471..1c6709648d6a7631b60bb790e160b2c28616e366 100755 (executable)
@@ -38,7 +38,7 @@ _scratch_mount
 
 # Start a workload and shutdown the fs. The subsequent mount will require log
 # recovery.
-$FSSTRESS_PROG -n 9999 -p 2 -w -d $SCRATCH_MNT > /dev/null 2>&1 &
+$FSSTRESS_PROG -n 9999 -p 2 -w -d $SCRATCH_MNT >> $seqres.full &
 sleep 5
 _scratch_shutdown -f
 $KILLALL_PROG -q $FSSTRESS_PROG
index 9fb3f406811084937b9bba3a8dd82ef63f6250f1..6af14c802ca920ac35c75efdff6d1a7616d48377 100755 (executable)
@@ -56,7 +56,7 @@ _scratch_mkfs_sized $((1024 * 1024 * 500)) >> $seqres.full 2>&1 ||
 _scratch_mount
 
 # populate the fs with some data and cycle the mount to reset the log head/tail
-$FSSTRESS_PROG -d $SCRATCH_MNT -z -fcreat=1 -p 4 -n 100000 > /dev/null 2>&1
+$FSSTRESS_PROG -d $SCRATCH_MNT -z -fcreat=1 -p 4 -n 100000 >> $seqres.full
 _scratch_cycle_mount || _fail "cycle mount failed"
 
 # Pin the tail and start a file removal workload. File removal tends to
index 07f84c25e90887ca11cd7ca811a44e4dead8aeb3..1d101876174b2d822ffd6a669810e372abb41b98 100755 (executable)
@@ -39,7 +39,7 @@ _scratch_mount
 STRESS_DIR="$SCRATCH_MNT/testdir"
 mkdir -p $STRESS_DIR
 
-$FSSTRESS_PROG -d $STRESS_DIR -n 100 -p 1000 $FSSTRESS_AVOID >/dev/null 2>&1 &
+$FSSTRESS_PROG -d $STRESS_DIR -n 100 -p 1000 $FSSTRESS_AVOID >>$seqres.full &
 
 # Freeze/unfreeze file system randomly
 echo "Start freeze/unfreeze randomly" | tee -a $seqres.full
index 41c7b7f86ac1bf523336dd4db5b9f8cab72ffc27..d8a6712e528c8cd4d3d17bd5798184dd175fc581 100755 (executable)
@@ -36,7 +36,7 @@ _exercise()
        _qmount
        mkdir -p $QUOTA_DIR
 
-       $FSSTRESS_PROG -d $QUOTA_DIR -n 1000000 -p 100 $FSSTRESS_AVOID >/dev/null 2>&1 &
+       $FSSTRESS_PROG -d $QUOTA_DIR -n 1000000 -p 100 $FSSTRESS_AVOID >>$seqres.full &
        sleep 10
        $XFS_QUOTA_PROG -x -c "disable -$type" $SCRATCH_DEV
        sleep 5
index 2b5e97e581d2244c258723310d4a0a5925746036..0b5772a1c9b4e4f95a934302f174bfad58c0e4bd 100755 (executable)
@@ -63,7 +63,7 @@ $FSSTRESS_PROG -d $SCRATCH_MNT \
                -f readv=0 \
                -f stat=0 \
                -f aread=0 \
-               -f dread=0 > /dev/null 2>&1
+               -f dread=0 >> $seqres.full
 
 # success, all done
 status=0