]> granicus.if.org Git - zfs/commitdiff
ZTS: Fix vdev_zaps_005_pos on CentOS 6
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 22 Aug 2019 15:53:44 +0000 (08:53 -0700)
committerGitHub <noreply@github.com>
Thu, 22 Aug 2019 15:53:44 +0000 (08:53 -0700)
The ancient version of blkid (v2.17.2) used in CentOS 6 will not
detect the newly created pool unless it has been written to.
Force a pool sync so `zpool import` will detect the newly created
pool.

Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #9199

tests/zfs-tests/tests/functional/vdev_zaps/vdev_zaps_005_pos.ksh

index 8cf8e6d4055be6921c1e0e4ad918d55f4a058d16..066be917e43660d1312c84ff21414923f1d30efd 100755 (executable)
@@ -41,6 +41,7 @@ orig_top=$(get_top_vd_zap $DISK $conf)
 orig_leaf=$(get_leaf_vd_zap $DISK $conf)
 assert_zap_common $TESTPOOL $DISK "top" $orig_top
 assert_zap_common $TESTPOOL $DISK "leaf" $orig_leaf
+log_must zpool sync
 
 # Export the pool.
 log_must zpool export $TESTPOOL