]> granicus.if.org Git - zfs/commit
Fix zpool_scrub_* test cases
authorBrian Behlendorf <behlendorf1@llnl.gov>
Sat, 26 Mar 2016 21:17:26 +0000 (14:17 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 30 Mar 2016 16:30:34 +0000 (09:30 -0700)
commitc35b188246899714c156a52fdea179eab3717e92
tree389d64ec0167aa2813668631f88ed5fae5969d5b
parent967798d04afc801e70bb12590e8325a32fb998dd
Fix zpool_scrub_* test cases

The zpool_scrub_002, zpool_scrub_003, zpool_scrub_004 test cases fail
reliably when running against small pools or fast storage.  This
occurs because the scrub/resilver operation completes before subsequent
commands can be run.

A one second delay has been added to 10% of zio's in order to ensure
the scrub/resilver operation will run for at least several seconds.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #4450
module/zfs/zio_inject.c
scripts/zfs-tests.sh
tests/runfiles/linux.run
tests/zfs-tests/tests/functional/cli_root/zpool_scrub/zpool_scrub_002_pos.ksh
tests/zfs-tests/tests/functional/cli_root/zpool_scrub/zpool_scrub_003_pos.ksh
tests/zfs-tests/tests/functional/cli_root/zpool_scrub/zpool_scrub_004_pos.ksh