]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Refine special_small_blocks property validation
authorDon Brady <dev.fs.zfs@gmail.com>
Fri, 12 May 2023 16:12:28 +0000 (10:12 -0600)
committerGitHub <noreply@github.com>
Fri, 12 May 2023 16:12:28 +0000 (09:12 -0700)
commitda211a4a337cce2917fa597d6930cff75f6cca2e
treec74d365b309d77b240a9107ef0aa85a02fc66a7c
parent5b3b6e95c0f3aeea55932d91f469e8edd3c9cd0f
Refine special_small_blocks property validation

When the special_small_blocks property is being set during a pool
create it enforces a limit of 128KiB even if the pool's record size
is larger.

If the recordsize property is being set during a pool create, then
use that value instead of the default SPA_OLD_MAXBLOCKSIZE value.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Don Brady <dev.fs.zfs@gmail.com>
Closes #13815
Closes #14811
lib/libzfs/libzfs_dataset.c
tests/runfiles/common.run
tests/zfs-tests/tests/Makefile.am
tests/zfs-tests/tests/functional/alloc_class/alloc_class_014_neg.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/alloc_class/alloc_class_015_pos.ksh [new file with mode: 0755]