]> granicus.if.org Git - zfs/commit
Fix pool creation with feature@allocation_classes disabled
authorloli10K <loli10K@users.noreply.github.com>
Thu, 10 Oct 2019 23:39:41 +0000 (01:39 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 10 Oct 2019 23:39:41 +0000 (16:39 -0700)
commit715c996d3b5e45897ff165f2e6610e1b57da47e4
tree4c600a53be1551d992a0ea222cb60e93f28234f3
parent2516a8782158a1d420aa00ce5f470a33cc7ec2ca
Fix pool creation with feature@allocation_classes disabled

When "feature@allocation_classes" is not enabled on the pool no vdev
with "special" or "dedup" allocation type should be allowed to exist in
the vdev tree.

Reviewed-by: Pavel Zakharov <pavel.zakharov@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #9427
Closes #9429
include/zfs_comutil.h
module/zcommon/zfs_comutil.c
module/zfs/spa.c
tests/zfs-tests/tests/functional/alloc_class/alloc_class_001_pos.ksh