MFV r331405: 9084 spa_*_ashift must ignore spare devices
illumos/illumos-gate@b037f3dbd6 Reviewed by: Prashanth Sreenivasa <pks@delphix.com> Reviewed by: George Wilson <george.wilson@delphix.com> Approved by: Dan McDonald <danmcd@joyent.com> Author: Prakash Surya <prakash.surya@delphix.com>
This commit is contained in:
commit
f222611ab0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=331406
@ -1589,14 +1589,6 @@ vdev_open(vdev_t *vd)
|
||||
return (error);
|
||||
}
|
||||
|
||||
if (vd->vdev_top == vd && vd->vdev_ashift != 0 &&
|
||||
!vd->vdev_isl2cache && !vd->vdev_islog) {
|
||||
if (vd->vdev_ashift > spa->spa_max_ashift)
|
||||
spa->spa_max_ashift = vd->vdev_ashift;
|
||||
if (vd->vdev_ashift < spa->spa_min_ashift)
|
||||
spa->spa_min_ashift = vd->vdev_ashift;
|
||||
}
|
||||
|
||||
/*
|
||||
* Track the min and max ashift values for normal data devices.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user