]> git.ipfire.org Git - thirdparty/linux.git/commit
cifs: Create a new shared file holding smb2 pdu definitions
authorRonnie Sahlberg <lsahlber@redhat.com>
Thu, 4 Nov 2021 23:39:01 +0000 (08:39 +0900)
committerSteve French <stfrench@microsoft.com>
Fri, 5 Nov 2021 14:50:57 +0000 (09:50 -0500)
commit0d35e382e4e96a4fd97a1438bc1b11a91d2d85a6
treee2a9b6bfab230869a0d370ebae81b07b2f745fba
parent7ae5e588b0a53a72819e661106cbe99dde83b41d
cifs: Create a new shared file holding smb2 pdu definitions

This file will contain all the definitions we need for SMB2 packets
and will follow the naming convention of MS-SMB2.PDF as closely
as possible to make it easier to cross-reference beween the definitions
and the standard.

The content of this file will mostly consist of migration of existing
definitions in the cifs/smb2.pdu.h and ksmbd/smb2pdu.h files
with some additional tweaks as the two files have diverged.

This patch introduces the new smbfs_common/smb2pdu.h file
and migrates the SMB2 header as well as TREE_CONNECT and TREE_DISCONNECT
to the shared file.

Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Reviewed-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
12 files changed:
fs/cifs/cifsfs.c
fs/cifs/cifsglob.h
fs/cifs/connect.c
fs/cifs/misc.c
fs/cifs/smb2maperror.c
fs/cifs/smb2misc.c
fs/cifs/smb2ops.c
fs/cifs/smb2pdu.c
fs/cifs/smb2pdu.h
fs/cifs/smb2proto.h
fs/cifs/smb2transport.c
fs/smbfs_common/smb2pdu.h [new file with mode: 0644]