mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Disable normalization implicitly when setting "utf8only=off"
When a parent dataset has normalization set to any value other than "none", and a file system is created with the property "utf8only=off", implicitly also set "normalization=none" instead of overriding the desire for a non-UTF8 enforcing file system. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Mike Swanson <mikeonthecomputer@gmail.com> Closes #11892 Closes #12038
This commit is contained in:
@@ -58,4 +58,15 @@ for form in formC formD formKC formKD; do
|
||||
destroy_testfs
|
||||
done
|
||||
|
||||
for form in formC formD formKC formKD; do
|
||||
create_testfs "-o normalization=$form"
|
||||
log_must zfs create -o utf8only=off $TESTPOOL/$TESTFS/$TESTSUBFS
|
||||
normalization=$(zfs get -H -o value normalization $TESTPOOL/$TESTFS/$TESTSUBFS)
|
||||
if [[ $normalization != "none" ]]; then
|
||||
log_fail "Turning off utf8only didn't set normalization to none"
|
||||
fi
|
||||
log_must zfs destroy $TESTPOOL/$TESTFS/$TESTSUBFS
|
||||
destroy_testfs
|
||||
done
|
||||
|
||||
log_pass "Can create FS with all supported normalization forms"
|
||||
|
||||
Reference in New Issue
Block a user