Skip to content

Commit fe77bc6

Browse files
committed
ZFS: Check that utf8only=off respects user setting
Based on the prior commit, utf8only=off should maintain its status even when a parent dataset has normalization!=none.
1 parent fcafdd4 commit fe77bc6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/zfs-tests/tests/functional/casenorm/norm_all_values.ksh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,15 @@ for form in formC formD formKC formKD; do
5858
destroy_testfs
5959
done
6060

61+
for form in formC formD formKC formKD; do
62+
create_testfs "-o normalization=$form"
63+
log_must zfs create -o utf8only=off $TESTPOOL/$TESTFS/$TESTSUBFS
64+
normalization=$(zfs get -H -o value normalization $TESTPOOL/$TESTFS/$TESTSUBFS)
65+
if [[ $normalization != "none" ]]; then
66+
log_fail "Turning off utf8only didn't set normalization to none"
67+
fi
68+
log_must zfs destroy $TESTPOOL/$TESTFS/$TESTSUBFS
69+
destroy_testfs
70+
done
71+
6172
log_pass "Can create FS with all supported normalization forms"

0 commit comments

Comments
 (0)