From 9ba5d8d204ad22c51d590edba1e7a5fb5ae2e82e Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Wed, 22 Dec 2021 09:37:27 -0800 Subject: [PATCH] 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 Reviewed-by: John Kennedy Signed-off-by: Brian Behlendorf Closes #12897 --- tests/test-runner/bin/zts-report.py.in | 1 - tests/zfs-tests/tests/functional/refreserv/refreserv_raidz.ksh | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test-runner/bin/zts-report.py.in b/tests/test-runner/bin/zts-report.py.in index 4c2735152f..430143121e 100755 --- a/tests/test-runner/bin/zts-report.py.in +++ b/tests/test-runner/bin/zts-report.py.in @@ -294,7 +294,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], 'zvol/zvol_misc/zvol_misc_snapdev': ['FAIL', '12621'], 'zvol/zvol_misc/zvol_misc_volmode': ['FAIL', known_reason], diff --git a/tests/zfs-tests/tests/functional/refreserv/refreserv_raidz.ksh b/tests/zfs-tests/tests/functional/refreserv/refreserv_raidz.ksh index 22891ef1d5..056c7916d9 100755 --- a/tests/zfs-tests/tests/functional/refreserv/refreserv_raidz.ksh +++ b/tests/zfs-tests/tests/functional/refreserv/refreserv_raidz.ksh @@ -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")