Skip to content

Start moving common cifs/ksmbd definitions into a common directory

Ronnie Sahlberg linux-cifs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4cifs: Create a new shared file holding smb2 pdu definitionsfs/cifs/cifsfs.c fs/cifs/cifsglob.h fs/cifs/connect.c +9 more+477 -4650 replies
2/4ksmbd: switch to use shared definitions where availablefs/ksmbd/smb2misc.c fs/ksmbd/smb2ops.c fs/ksmbd/smb2pdu.c +2 more+2 -1800 replies
3/4cifs: move NEGOTIATE_PROTOCOL definitions out into the common areafs/cifs/smb2pdu.c fs/cifs/smb2pdu.h fs/cifs_common/smb2pdu.h+231 -2220 replies
4/4ksmbd: use the common definitions for NEGOTIATE_PROTOCOLfs/ksmbd/smb2ops.c fs/ksmbd/smb2pdu.c fs/ksmbd/smb2pdu.h +1 more+15 -1670 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] Start moving common cifs/ksmbd definitions into a common directory

Steve, Namjae,

Here is a start of work to share common definitions between the cifs client and the server. The patches build ontop of Namjaes patch to rework the smb2_hdr structure that he recently sent to the list.

It creates a new shared smb2pdu.h file and starts moving definitions over. The two copies of smb2pdu.h, in cifs/ and ksmbd/ have diverged a bit so some things are being renamed in these patches. NegotiateProtocol is in two separate patches since for this funciton the changes are a little more than just renames, for example I change several arrays at the tail of structures from [number] to simply []
so that needs careful review.

Two patches are for cifs and cifs_common and two patches are for ksmbd. The ksmbd patches depend on the cifs patches so the cifs patches have to go in first.