Running the fiemap-tester with a unique random seed each time
may uncover some things missed by always using the default.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Alex Elder <aelder@sgi.com>
}
trap "_cleanup; exit \$status" 0 1 2 3 15
+seed=`date +%s`
+
+echo "using seed $seed" >> $fiemaplog
+
echo "fiemap run without preallocation, with sync"
-$here/src/fiemap-tester -q -S -p 0 -r 200 $fiemapfile 2>&1 | tee $fiemaplog
+$here/src/fiemap-tester -q -S -s $seed -p 0 -r 200 $fiemapfile 2>&1 | tee -a $fiemaplog
echo "fiemap run without preallocation or sync"
-$here/src/fiemap-tester -q -p 0 -r 200 $fiemapfile 2>&1 | tee $fiemaplog
+$here/src/fiemap-tester -q -s $seed -p 0 -r 200 $fiemapfile 2>&1 | tee -a $fiemaplog
if grep -q "Operation not supported" $fiemaplog; then
_notrun "FIEMAP not supported by this filesystem type: $FSTYP"