ZTS: Fix refreserv_raidz.ksh

The rerefreserv_raidz test was failing on Linux because the sync being
issued doesn't guarantee a pool sync.  Switch to using the sync_pool
function and remove the ZTS exception for Linux.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #12897
This commit is contained in:
Brian Behlendorf 2021-12-22 09:37:27 -08:00 committed by Tony Hutter
parent f22ebf8fa6
commit 74bba85423
2 changed files with 1 additions and 2 deletions

View File

@ -285,7 +285,6 @@ elif sys.platform.startswith('linux'):
'mmp/mmp_active_import': ['FAIL', known_reason],
'mmp/mmp_exported_import': ['FAIL', known_reason],
'mmp/mmp_inactive_import': ['FAIL', known_reason],
'refreserv/refreserv_raidz': ['FAIL', known_reason],
'snapshot/rollback_003_pos': ['FAIL', known_reason],
})

View File

@ -110,7 +110,7 @@ for parity in 1 2 3; do
block_device_wait "/dev/zvol/$vol"
log_must dd if=/dev/zero of=/dev/zvol/$vol \
bs=1024k count=$volsize
sync
sync_pool $TESTPOOL
ref=$(zfs get -Hpo value referenced "$vol")
refres=$(zfs get -Hpo value refreservation "$vol")