diff options
-rw-r--r-- | common/casefold | 9 | ||||
-rwxr-xr-x | tests/generic/556 | 3 |
2 files changed, 11 insertions, 1 deletions
diff --git a/common/casefold b/common/casefold index d9126f4c..8fbdb52a 100644 --- a/common/casefold +++ b/common/casefold @@ -12,6 +12,9 @@ _has_casefold_kernel_support() f2fs) test -f '/sys/fs/f2fs/features/casefold' ;; + bcachefs) + true + ;; *) # defaults to unsupported false @@ -52,6 +55,9 @@ _scratch_mkfs_casefold() f2fs) _scratch_mkfs -C utf8 $* ;; + bcachefs) + _scratch_mkfs $* + ;; *) _notrun "Don't know how to mkfs with casefold support on $FSTYP" ;; @@ -67,6 +73,9 @@ _scratch_mkfs_casefold_strict() f2fs) _scratch_mkfs -C utf8:strict ;; + bcachefs) + _scratch_mkfs $* + ;; *) _notrun "Don't know how to mkfs with casefold-strict support on $FSTYP" ;; diff --git a/tests/generic/556 b/tests/generic/556 index 404a3243..cb6249ca 100755 --- a/tests/generic/556 +++ b/tests/generic/556 @@ -494,7 +494,8 @@ _check_dmesg_for \ test_casefold_flag_basic test_casefold_lookup -test_bad_casefold_lookup +# bcachefs only supports strict mode - this may be subject to change: +[[ $FSTYP != bcachefs ]] && test_bad_casefold_lookup test_create_and_remove test_casefold_flag_removal test_casefold_flag_inheritance |