diff options
author | loli10K <[email protected]> | 2019-10-11 01:39:41 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-10-10 16:39:41 -0700 |
commit | 715c996d3b5e45897ff165f2e6610e1b57da47e4 (patch) | |
tree | 4c600a53be1551d992a0ea222cb60e93f28234f3 /tests | |
parent | 2516a8782158a1d420aa00ce5f470a33cc7ec2ca (diff) |
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 <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: loli10K <[email protected]>
Closes #9427
Closes #9429
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/zfs-tests/tests/functional/alloc_class/alloc_class_001_pos.ksh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/zfs-tests/tests/functional/alloc_class/alloc_class_001_pos.ksh b/tests/zfs-tests/tests/functional/alloc_class/alloc_class_001_pos.ksh index 441df8296..3237d7cb7 100755 --- a/tests/zfs-tests/tests/functional/alloc_class/alloc_class_001_pos.ksh +++ b/tests/zfs-tests/tests/functional/alloc_class/alloc_class_001_pos.ksh @@ -20,7 +20,8 @@ # # DESCRIPTION: -# Creating a pool with a special device succeeds. +# Creating a pool with a special device succeeds, but only if +# "feature@allocation_classes" is enabled. # verify_runnable "global" @@ -31,6 +32,9 @@ log_assert $claim log_onexit cleanup log_must disk_setup +for type in special dedup; do + log_mustnot zpool create -d $TESTPOOL $CLASS_DISK0 $type $CLASS_DISK1 +done log_must zpool create $TESTPOOL raidz $ZPOOL_DISKS special mirror \ $CLASS_DISK0 $CLASS_DISK1 log_must display_status "$TESTPOOL" |