Skip to content

Commit

Permalink
ZTS: Fix vdev_zaps_005_pos on CentOS 6
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #9199
  • Loading branch information
behlendorf authored Aug 22, 2019
1 parent a9ebdfd commit 20f7b91
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 20f7b91

Please sign in to comment.