diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-04-26 11:50:45 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-04-26 12:21:29 -0400 |
commit | 19ff0df5acfd785b1d94b6fed3edbba0c827d4aa (patch) | |
tree | b2d6a261cc3cd3805a6b2d8f8ac7404a08024f90 | |
parent | a2d1d5923c2be06a332ec14c0fd16e3d44e3b466 (diff) |
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-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 |