HomeFreeBSD

spa_export_common: refactor common exit points

Description

spa_export_common: refactor common exit points

Create a common exit point for spa_export_common (a very long
function), which avoids missing steps on failure. This work
is helpful for the planned forced pool export changes.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Will Andrews <will@firepipe.net>
Closes #11514

Details

Provenance
willAuthored on Jan 25 2021, 11:04 PM
GitHub <noreply@github.com>Committed on Jan 25 2021, 11:04 PM
Parents
rG35ac0ed1fd78: ZTS: improve output clarity of check_prop_source
Branches
Unknown
Tags
Unknown