the old code was way too broad here, this fixes at least the following issues: - importing of other/unconfigured zpools by "import -a" - possible false positives if a pool name is a substring of another pool name because of "list" without pool name, potentially skipping activation for such pools - not noticing failure to activate in activate_storage because the success of "zpool import -a" does not tell us anything about the pool we actually wanted to import checking specifically for the pool to be activated when calling "zpool list" gets rid of the second issue, and trying to import only that pool fixes the other two.
14 KiB
14 KiB