]> git.baikalelectronics.ru Git - kernel.git/commit
udf: Fix iocharset=utf8 mount option
authorPali Rohár <pali@kernel.org>
Sun, 8 Aug 2021 16:24:36 +0000 (18:24 +0200)
committerJan Kara <jack@suse.cz>
Thu, 12 Aug 2021 14:07:09 +0000 (16:07 +0200)
commit878b6175b30e7fb67c6e30fa987a2473aeacbc13
tree97974b76a049447e0db6e25104851d46a13fcb91
parentad6b01e9c3fbb488e1da26aa647926afa98aa18e
udf: Fix iocharset=utf8 mount option

Currently iocharset=utf8 mount option is broken. To use UTF-8 as iocharset,
it is required to use utf8 mount option.

Fix iocharset=utf8 mount option to use be equivalent to the utf8 mount
option.

If UTF-8 as iocharset is used then s_nls_map is set to NULL. So simplify
code around, remove UDF_FLAG_NLS_MAP and UDF_FLAG_UTF8 flags as to
distinguish between UTF-8 and non-UTF-8 it is needed just to check if
s_nls_map set to NULL or not.

Link: https://lore.kernel.org/r/20210808162453.1653-4-pali@kernel.org
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/super.c
fs/udf/udf_sb.h
fs/udf/unicode.c