aboutsummaryrefslogtreecommitdiff
path: root/tests/zfs-tests/tests/functional/checksum/filetest_001_pos.ksh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/zfs-tests/tests/functional/checksum/filetest_001_pos.ksh')
-rwxr-xr-xtests/zfs-tests/tests/functional/checksum/filetest_001_pos.ksh5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/zfs-tests/tests/functional/checksum/filetest_001_pos.ksh b/tests/zfs-tests/tests/functional/checksum/filetest_001_pos.ksh
index 0cad8047cdee..615b41f312b6 100755
--- a/tests/zfs-tests/tests/functional/checksum/filetest_001_pos.ksh
+++ b/tests/zfs-tests/tests/functional/checksum/filetest_001_pos.ksh
@@ -62,6 +62,7 @@ log_assert "Create and read back files with using different checksum algorithms"
log_onexit cleanup
WRITESZ=1048576
+NWRITES=5
# Get a list of vdevs in our pool
set -A array $(get_disklist_fullpath)
@@ -75,7 +76,7 @@ while [[ $i -lt ${#CHECKSUM_TYPES[*]} ]]; do
type=${CHECKSUM_TYPES[i]}
log_must zfs set checksum=$type $TESTPOOL
log_must file_write -o overwrite -f $TESTDIR/test_$type \
- -b $WRITESZ -c 5 -d R
+ -b $WRITESZ -c $NWRITES -d R
(( i = i + 1 ))
done
@@ -96,7 +97,7 @@ while [[ $j -lt ${#CHECKSUM_TYPES[*]} ]]; do
type=${CHECKSUM_TYPES[$j]}
log_must zfs set checksum=$type $TESTPOOL
log_must file_write -o overwrite -f $TESTDIR/test_$type \
- -b $WRITESZ -c 5 -d R
+ -b $WRITESZ -c $NWRITES -d R
# Corrupt the level 0 blocks of this file
corrupt_blocks_at_level $TESTDIR/test_$type