f2fs: sysfs: add encoding_flags entry
This patch adds a new sysfs entry /sys/fs/f2fs/<disk>/encoding_flags, it is a read-only entry to show the value of sb.s_encoding_flags, the value is hexadecimal. ============================ ========== Flag_Name Flag_Value ============================ ========== SB_ENC_STRICT_MODE_FL 0x00000001 SB_ENC_NO_COMPAT_FALLBACK_FL 0x00000002 ============================ ========== case#1 mkfs.f2fs -f -O casefold -C utf8:strict /dev/vda mount /dev/vda /mnt/f2fs cat /sys/fs/f2fs/vda/encoding_flags 1 case#2 mkfs.f2fs -f -O casefold -C utf8 /dev/vda fsck.f2fs --nolinear-lookup=1 /dev/vda mount /dev/vda /mnt/f2fs cat /sys/fs/f2fs/vda/encoding_flags 2 Signed-off-by:Chao Yu <chao@kernel.org> Signed-off-by:
Jaegeuk Kim <jaegeuk@kernel.org>
Loading
-
mentioned in commit bc66afe2
-
mentioned in commit 7cb7a67a
-
mentioned in commit 805f6aff
-
mentioned in commit 5b1dc307
-
mentioned in commit e963715b
-
mentioned in commit 52d2ab04
-
mentioned in commit 401f0dab
-
mentioned in commit a0616b33
-
mentioned in commit 8f2171f6
-
mentioned in commit d011a822
-
mentioned in commit e7170b7f
-
mentioned in commit cf7e7c48
-
mentioned in commit c1aaaf65
-
mentioned in commit e9e9251a
-
mentioned in commit dae7a965
Please sign in to comment