Skip to content

Commit db90f41

Browse files
committed
ext4: export /sys/fs/ext4/feature/casefold if Unicode support is present
Signed-off-by: Theodore Ts'o <[email protected]>
1 parent 50b29d8 commit db90f41

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

fs/ext4/sysfs.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,9 @@ EXT4_ATTR_FEATURE(meta_bg_resize);
238238
#ifdef CONFIG_FS_ENCRYPTION
239239
EXT4_ATTR_FEATURE(encryption);
240240
#endif
241+
#ifdef CONFIG_UNICODE
242+
EXT4_ATTR_FEATURE(casefold);
243+
#endif
241244
EXT4_ATTR_FEATURE(metadata_csum_seed);
242245

243246
static struct attribute *ext4_feat_attrs[] = {
@@ -246,6 +249,9 @@ static struct attribute *ext4_feat_attrs[] = {
246249
ATTR_LIST(meta_bg_resize),
247250
#ifdef CONFIG_FS_ENCRYPTION
248251
ATTR_LIST(encryption),
252+
#endif
253+
#ifdef CONFIG_UNICODE
254+
ATTR_LIST(casefold),
249255
#endif
250256
ATTR_LIST(metadata_csum_seed),
251257
NULL,

0 commit comments

Comments
 (0)