mirror_zfs/tests/zfs-tests/tests/functional/zvol
Christian Schwarz 5bc0318047
ZTS: zvol_stress: fix race condition with zinject usage
In automated ZTS runs, I'd occasionally hit

    log_fail "Expected to see some write errors"

because there weren't any write errors.

The reason is that we're not syncing the zpool before `zinject -c`.
If the writes by `dd` aren't synced out at the time `zinject -c` runs,
they will not hit an error and we'll hit the log_fail above.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Christian Schwarz <christian.schwarz@nutanix.com>
Closes #13793
2022-08-25 14:22:10 -07:00
..
zvol_cli Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zvol_ENOSPC Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zvol_misc Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zvol_stress ZTS: zvol_stress: fix race condition with zinject usage 2022-08-25 14:22:10 -07:00
zvol_swap Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zvol_common.shlib Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zvol.cfg Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00