summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrakash Surya <prakash.surya@delphix.com>2018-02-16 08:16:11 -0800
committerPrakash Surya <prakash.surya@delphix.com>2018-02-21 08:33:37 -0800
commitb037f3dbd69cef4a7ffd576ad33e07bfaf0b1e84 (patch)
tree559e82446ab0f2e6f967500b5382641d6e57c3e8
parentd32e0fcacf2171e3119de0a92fb7d86b397d4d69 (diff)
downloadillumos-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.c8
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.
*/