cifs: move IOCTL and structures to the common area
Subsystems (2)
PATCH 1/2 cifs: move IOCTL and structures to the common area
Rendame structures and fields for SMB2 IOCTL to match MS-FSCC and MS-SMB2 and move the definitions to the common area.
Signed-off-by Ronnie Sahlberg <[email protected]>
--- fs/cifs/cifspdu.h | 8 -- fs/cifs/smb2ops.c | 81 ++++++------- fs/cifs/smb2pdu.c | 4 +- fs/cifs/smb2pdu.h | 239 --------------------------------------- fs/cifs_common/smb2pdu.h | 214 +++++++++++++++++++++++++++++++++++ 5 files changed, 258 insertions(+), 288 deletions(-)
fs/cifs/cifspdu.h +0 -8
@@ -1294,14 +1294,6 @@ typedef struct smb_com_ntransact_rsp {/* parms and data follow */ } __attribute__((packed)) NTRANSACT_RSP; -/* See MS-SMB 2.2.7.2.1.1 */ -struct srv_copychunk { -__le64 SourceOffset; -__le64 DestinationOffset; -__le32 CopyLength; -__u32 Reserved; -} __packed; - typedef struct smb_com_transaction_ioctl_req { struct smb_hdr hdr; /* wct = 23 */ __u8 MaxSetupCount;
fs/cifs/smb2ops.c +42 -39
237 lines not on this page · raw message
fs/cifs/smb2pdu.c +2 -2
@@ -3010,8 +3010,8 @@ SMB2_ioctl_init(struct cifs_tcon *tcon, struct TCP_Server_Info *server, } req->CtlCode =cpu_to_le32 (opcode); - req->PersistentFileId = persistent_fid; - req->VolatileFileId = volatile_fid; + req->PersistentFileId =cpu_to_le64 (persistent_fid); + req->VolatileFileId =cpu_to_le64 (volatile_fid); iov[0 ].iov_base = (char *)req;/*
fs/cifs/smb2pdu.h +0 -239
251 lines not on this page · raw message
fs/cifs_common/smb2pdu.h +214 -0
219 lines not on this page · raw message
Signature · 1 line
2.30.2