HomeFreeBSD

ZTS: Fix zpool_import_hostid_changed_cachefile_unclean_export

Description

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

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Sep 26 2024, 4:58 PM
GitHub <noreply@github.com>Committed on Sep 26 2024, 4:58 PM
Parents
rGb05203599059: Avoid BUG in migrate_folio_extra
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGab1b87e7479b: ZTS: Fix zpool_import_hostid_changed_cachefile_unclean_export (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Sep 26 2024, 4:58 PM