mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-17 13:53:39 +00:00
Fixed import of destroyed ZFS pools failing due to vdev_geom incorrectly
preventing config loads from devices associated with destroyed pools. Reviewed by: avg MFC after: 1 week
This commit is contained in:
parent
42a253e6a1
commit
5f921c5911
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=252056
|
@ -270,8 +270,7 @@ vdev_geom_read_config(struct g_consumer *cp, nvlist_t **config)
|
|||
continue;
|
||||
|
||||
if (nvlist_lookup_uint64(*config, ZPOOL_CONFIG_POOL_STATE,
|
||||
&state) != 0 || state == POOL_STATE_DESTROYED ||
|
||||
state > POOL_STATE_L2CACHE) {
|
||||
&state) != 0 || state > POOL_STATE_L2CACHE) {
|
||||
nvlist_free(*config);
|
||||
*config = NULL;
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue