diff options
| author | Prakash Surya <prakash.surya@delphix.com> | 2018-02-16 08:16:11 -0800 |
|---|---|---|
| committer | Prakash Surya <prakash.surya@delphix.com> | 2018-02-21 08:33:37 -0800 |
| commit | b037f3dbd69cef4a7ffd576ad33e07bfaf0b1e84 (patch) | |
| tree | 559e82446ab0f2e6f967500b5382641d6e57c3e8 | |
| parent | d32e0fcacf2171e3119de0a92fb7d86b397d4d69 (diff) | |
| download | illumos-joyent-b037f3dbd69cef4a7ffd576ad33e07bfaf0b1e84.tar.gz | |
9084 spa_*_ashift must ignore spare devices
Reviewed by: Prashanth Sreenivasa <pks@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Approved by: Dan McDonald <danmcd@joyent.com>
| -rw-r--r-- | usr/src/uts/common/fs/zfs/vdev.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/usr/src/uts/common/fs/zfs/vdev.c b/usr/src/uts/common/fs/zfs/vdev.c index 73306aec85..0df76e22a4 100644 --- a/usr/src/uts/common/fs/zfs/vdev.c +++ b/usr/src/uts/common/fs/zfs/vdev.c @@ -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. */ |
