fix zfs pool creation accidentally broken by r305331
The upstream change introduced a new load state, SPA_LOAD_CREATE, and vdev_geom code needs to be aware of it. Tested by: cy MFC after: 1 week X-MFC with: r305331
This commit is contained in:
parent
50002d3dfa
commit
1a82707cd7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=305456
@ -777,7 +777,8 @@ vdev_geom_open(vdev_t *vd, uint64_t *psize, uint64_t *max_psize,
|
||||
|
||||
if (vd->vdev_spa->spa_splitting_newspa ||
|
||||
(vd->vdev_prevstate == VDEV_STATE_UNKNOWN &&
|
||||
vd->vdev_spa->spa_load_state == SPA_LOAD_NONE)) {
|
||||
vd->vdev_spa->spa_load_state == SPA_LOAD_NONE ||
|
||||
vd->vdev_spa->spa_load_state == SPA_LOAD_CREATE)) {
|
||||
/*
|
||||
* We are dealing with a vdev that hasn't been previously
|
||||
* opened (since boot), and we are not loading an
|
||||
|
Loading…
Reference in New Issue
Block a user