]> git.ipfire.org Git - thirdparty/linux.git/commit
cifs: Autogenerate SMB2 error mapping table
authorDavid Howells <dhowells@redhat.com>
Tue, 23 Dec 2025 00:05:34 +0000 (00:05 +0000)
committerSteve French <stfrench@microsoft.com>
Mon, 9 Feb 2026 03:23:53 +0000 (21:23 -0600)
commitc527e13a7a6628176655d70ff166f0f594a77984
treed5fc450f5f9e2f2ef1c9d9f577f3d5c21dbb78c4
parent10dfb0738a9d383575614b5d4389953cb97e1841
cifs: Autogenerate SMB2 error mapping table

Autogenerate the SMB2 status to error code mapping table, from the
smb2status.h common header, sorting it by NT status code so that it can be
searched by binary chopping. This also reduces the number of places this
list is duplicated in the source.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Steve French <stfrench@microsoft.com>
cc: ChenXiaoSong <chenxiaosong@kylinos.cn>
cc: linux-cifs@vger.kernel.org
Signed-off-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Reviewed-by: David Howells <dhowells@redhat.com>
Link: https://lore.kernel.org/linux-cifs/20260106071507.1420900-3-chenxiaosong.chenxiaosong@linux.dev/
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/Makefile
fs/smb/client/gen_smb2_mapping [new file with mode: 0644]
fs/smb/client/smb2maperror.c
fs/smb/common/smb2status.h