]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cifs: Add new mount option -o nounicode to disable SMB1 UNICODE mode
authorPali Rohár <pali@kernel.org>
Sun, 6 Oct 2024 17:16:24 +0000 (19:16 +0200)
committerSteve French <stfrench@microsoft.com>
Wed, 26 Mar 2025 19:51:58 +0000 (14:51 -0500)
commite14b64247438e5026b2fce8ffd7cdf80a87e2bfa
treeeccd24457f17550a16e1be3558a4d52e4038b4d9
parentbe786e509c1af9b2dcf25c3d601f05c8c251f482
cifs: Add new mount option -o nounicode to disable SMB1 UNICODE mode

SMB1 protocol supports non-UNICODE (8-bit OEM character set) and
UNICODE (UTF-16) modes.

Linux SMB1 client implements both of them but currently does not allow to
choose non-UNICODE mode when SMB1 server announce UNICODE mode support.

This change adds a new mount option -o nounicode to disable UNICODE mode
and force usage of non-UNICODE (8-bit OEM character set) mode.

This allows to test non-UNICODE implementation of Linux SMB1 client against
any SMB1 server, including modern and recent Windows SMB1 server.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cifsfs.c
fs/smb/client/cifsglob.h
fs/smb/client/cifssmb.c
fs/smb/client/connect.c
fs/smb/client/fs_context.c
fs/smb/client/fs_context.h
fs/smb/client/sess.c
fs/smb/client/smb1ops.c