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:
Steven Hartland 2013-06-21 12:02:09 +00:00
parent 42a253e6a1
commit 5f921c5911
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=252056

View file

@ -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;