HomeFreeBSD

ZTS: Fix zpool_expand_001_pos

Description

ZTS: Fix zpool_expand_001_pos

zpool_expand_001_pos was often failing due to not seeing autoexpand
commands in the zpool history. During testing, I found this to be
unreliable (sometimes the "online" wouldn't appear in zpool history)
and unnecessary, as we could simply check that the pool increased in
size.

This commit revamps the test to check for the expanded pool size
and corresponding new free space.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #13743

Details

Provenance
Tony Hutter <hutter2@llnl.gov>Authored on Aug 9 2022, 8:26 PM
Parents
rG65f8f92d12c0: zed: Look for NVMe DEVPATH if no ID_BUS
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rGb1be0a5c151b: ZTS: Fix zpool_expand_001_pos (authored by Tony Hutter <hutter2@llnl.gov>).Sep 14 2022, 12:58 AM