HomeFreeBSD

ZTS: Fix zpool_import_hostid_changed_unclean_export

Description

ZTS: Fix zpool_import_hostid_changed_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: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #16578

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Sep 28 2024, 4:18 PM
GitHub <noreply@github.com>Committed on Sep 28 2024, 4:18 PM
Parents
rG6f50f8e16b7c: zfs_log: add flex array fields to log record structs
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG834b90fb819e: ZTS: Fix zpool_import_hostid_changed_unclean_export (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Sep 28 2024, 4:18 PM