Skip to content

Commit

Permalink
9084 spa_*_ashift must ignore spare devices
Browse files Browse the repository at this point in the history
Reviewed by: Prashanth Sreenivasa <pks@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Approved by: Dan McDonald <danmcd@joyent.com>
  • Loading branch information
prakashsurya committed Feb 21, 2018
1 parent d32e0fc commit b037f3d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions usr/src/uts/common/fs/zfs/vdev.c
Expand Up @@ -1478,14 +1478,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.
*/
Expand Down

0 comments on commit b037f3d

Please sign in to comment.