ext4)
test -f '/sys/fs/ext4/features/casefold'
;;
+ f2fs)
+ test -f '/sys/fs/f2fs/features/casefold'
+ ;;
*)
# defaults to unsupported
false
ext4)
_scratch_mkfs -O casefold $*
;;
+ f2fs)
+ _scratch_mkfs -C utf8 $*
+ ;;
*)
_notrun "Don't know how to mkfs with casefold support on $FSTYP"
;;
ext4)
_scratch_mkfs -O casefold -E encoding_flags=strict
;;
+ f2fs)
+ _scratch_mkfs -C utf8:strict
+ ;;
*)
_notrun "Don't know how to mkfs with casefold-strict support on $FSTYP"
;;
_casefold_lsattr_dir()
{
- $LSATTR_PROG -ld "${1}" | _filter_spaces
+ if $LSATTR_PROG -ld "${1}" | grep -q Casefold ; then
+ echo "${1} Casefold"
+ else
+ echo "${1}"
+ fi
}