mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-05-02 18:17:50 -04:00
smb: move create_durable_req_v2 to common/smb2pdu.h
Modify the following places:
- some fields in "struct create_durable_req_v2" ->
struct durable_context_v2
- durable_context_v2 -> durable_context_v2_req
- create_durable_v2 -> create_durable_req_v2
Then move duplicate definitions to common header file.
Signed-off-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
committed by
Steve French
parent
884a1d4e9c
commit
833a75fc9e
@@ -2806,7 +2806,7 @@ static int parse_durable_handle_context(struct ksmbd_work *work,
|
||||
durable_v2_blob =
|
||||
(struct create_durable_req_v2 *)context;
|
||||
ksmbd_debug(SMB, "Request for durable v2 open\n");
|
||||
dh_info->fp = ksmbd_lookup_fd_cguid(durable_v2_blob->CreateGuid);
|
||||
dh_info->fp = ksmbd_lookup_fd_cguid(durable_v2_blob->dcontext.CreateGuid);
|
||||
if (dh_info->fp) {
|
||||
if (!memcmp(conn->ClientGUID, dh_info->fp->client_guid,
|
||||
SMB2_CLIENT_GUID_SIZE)) {
|
||||
@@ -2824,11 +2824,11 @@ static int parse_durable_handle_context(struct ksmbd_work *work,
|
||||
if ((lc && (lc->req_state & SMB2_LEASE_HANDLE_CACHING_LE)) ||
|
||||
req_op_level == SMB2_OPLOCK_LEVEL_BATCH) {
|
||||
dh_info->CreateGuid =
|
||||
durable_v2_blob->CreateGuid;
|
||||
durable_v2_blob->dcontext.CreateGuid;
|
||||
dh_info->persistent =
|
||||
le32_to_cpu(durable_v2_blob->Flags);
|
||||
le32_to_cpu(durable_v2_blob->dcontext.Flags);
|
||||
dh_info->timeout =
|
||||
le32_to_cpu(durable_v2_blob->Timeout);
|
||||
le32_to_cpu(durable_v2_blob->dcontext.Timeout);
|
||||
dh_info->type = dh_idx;
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -66,15 +66,6 @@ struct preauth_integrity_info {
|
||||
/* Apple Defined Contexts */
|
||||
#define SMB2_CREATE_AAPL "AAPL"
|
||||
|
||||
struct create_durable_req_v2 {
|
||||
struct create_context_hdr ccontext;
|
||||
__u8 Name[8];
|
||||
__le32 Timeout;
|
||||
__le32 Flags;
|
||||
__u8 Reserved[8];
|
||||
__u8 CreateGuid[16];
|
||||
} __packed;
|
||||
|
||||
#define DURABLE_HANDLE_MAX_TIMEOUT 300000
|
||||
|
||||
struct create_durable_reconn_req {
|
||||
|
||||
Reference in New Issue
Block a user