ZTS: Fix zpool_import_hostid_changed_cachefile_unclean_export
commitab1b87e7479b6a615d7882de0579c9085eeaebac
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 26 Sep 2024 16:58:11 +0000 (26 09:58 -0700)
committerGitHub <noreply@github.com>
Thu, 26 Sep 2024 16:58:11 +0000 (26 09:58 -0700)
tree9a048496fd03ba7eea6a1f5a06963caf145ab1c0
parentb052035990594408899fa32fd4ad6603b75b6c6d
ZTS: Fix zpool_import_hostid_changed_cachefile_unclean_export

Update the test case to freeze the pool then export it to better
simulate a hard failure.  This is preferable to copying the vdev
while the pool's imported since with a copy we're not guaranteed
the on-disk state will be consistent.  That can in turn result
in a pool import failure and a spurious test failure.

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #16570
tests/zfs-tests/tests/functional/cli_root/zpool_import/zpool_import_hostid_changed_cachefile_unclean_export.ksh