]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
isofs: joliet: Fix iocharset=utf8 mount option
authorPali Rohár <pali@kernel.org>
Sun, 8 Aug 2021 16:24:37 +0000 (18:24 +0200)
committerJan Kara <jack@suse.cz>
Thu, 12 Aug 2021 14:07:14 +0000 (16:07 +0200)
commit28ce50f8d96ec9035f60c9348294ea26b94db944
treeedd97edb8dea044d3474ad96773ea65a17cbd480
parentb645333443712d2613e4e863f81090d5dc509657
isofs: joliet: 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_iocharset is set to NULL. So
simplify code around, remove s_utf8 field as to distinguish between UTF-8
and non-UTF-8 it is needed just to check if s_nls_iocharset is set to NULL
or not.

Link: https://lore.kernel.org/r/20210808162453.1653-5-pali@kernel.org
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/isofs/inode.c
fs/isofs/isofs.h
fs/isofs/joliet.c