]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ext4: export /sys/fs/ext4/feature/casefold if Unicode support is present
authorTheodore Ts'o <tytso@mit.edu>
Mon, 6 May 2019 18:03:52 +0000 (14:03 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 6 May 2019 18:03:52 +0000 (14:03 -0400)
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/sysfs.c

index 616c075da062a3fdb0cf5e4c23be1f90e7722d60..04b4f53f0659e59adfc3c33ba44bf4383bf298ce 100644 (file)
@@ -238,6 +238,9 @@ EXT4_ATTR_FEATURE(meta_bg_resize);
 #ifdef CONFIG_FS_ENCRYPTION
 EXT4_ATTR_FEATURE(encryption);
 #endif
+#ifdef CONFIG_UNICODE
+EXT4_ATTR_FEATURE(casefold);
+#endif
 EXT4_ATTR_FEATURE(metadata_csum_seed);
 
 static struct attribute *ext4_feat_attrs[] = {
@@ -246,6 +249,9 @@ static struct attribute *ext4_feat_attrs[] = {
        ATTR_LIST(meta_bg_resize),
 #ifdef CONFIG_FS_ENCRYPTION
        ATTR_LIST(encryption),
+#endif
+#ifdef CONFIG_UNICODE
+       ATTR_LIST(casefold),
 #endif
        ATTR_LIST(metadata_csum_seed),
        NULL,