Merge branch 'dev-zfs-0.6.5.x' into dev-zfs-0.7.x

This commit is contained in:
Faruk Kasumovic 2018-08-06 14:54:47 +02:00
commit 159184017a
1 changed files with 3 additions and 0 deletions

View File

@ -377,6 +377,9 @@ func poolSearchImport(q string, searchpaths []string, guid bool) (name string,
err = errPoolList err = errPoolList
return return
} }
if PoolState(C.get_zpool_state(tconfig)) == PoolStateDestroyed {
continue // skip destroyed pools
}
if guid { if guid {
sguid := fmt.Sprint(C.get_zpool_guid(tconfig)) sguid := fmt.Sprint(C.get_zpool_guid(tconfig))
if q == sguid { if q == sguid {