From: Ralph Boehme Date: Thu, 10 Jul 2025 13:51:12 +0000 (+0200) Subject: smbd: move create_action to smbXsrv_open_global0 X-Git-Tag: tdb-1.4.14~22 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=09e859756bb6fc9deee403212503fb4a567d1382;p=thirdparty%2Fsamba.git smbd: move create_action to smbXsrv_open_global0 In preperation for making create replay disk backed. Signed-off-by: Ralph Boehme Reviewed-by: Stefan Metzmacher --- diff --git a/source3/librpc/idl/smbXsrv.idl b/source3/librpc/idl/smbXsrv.idl index 1c4ed7d88a2..ee0a90fe461 100644 --- a/source3/librpc/idl/smbXsrv.idl +++ b/source3/librpc/idl/smbXsrv.idl @@ -430,6 +430,7 @@ interface smbXsrv GUID create_guid; GUID client_guid; GUID app_instance_id; + uint32 create_action; /* * TODO: for durable/resilient/persistent handles we need more * things here. See [MS-SMB2] 3.3.1.10 Per Open @@ -477,7 +478,6 @@ interface smbXsrv NTTIME idle_time; [ignore] files_struct *compat; smbXsrv_open_flags flags; - uint32 create_action; hyper request_count; hyper pre_request_count; } smbXsrv_open; diff --git a/source3/smbd/smb2_create.c b/source3/smbd/smb2_create.c index 453e14e90b4..82b2b57299d 100644 --- a/source3/smbd/smb2_create.c +++ b/source3/smbd/smb2_create.c @@ -1082,7 +1082,7 @@ static struct tevent_req *smbd_smb2_create_send(TALLOC_CTX *mem_ctx, state->result = state->op->compat; state->result->op = state->op; state->update_open = false; - state->info = state->op->create_action; + state->info = state->op->global->create_action; smbd_smb2_create_after_exec(req); if (!tevent_req_is_in_progress(req)) { @@ -1708,7 +1708,7 @@ static void smbd_smb2_create_after_exec(struct tevent_req *req) DBG_DEBUG("response construction phase\n"); - state->op->create_action = state->info; + state->op->global->create_action = state->info; state->out_create_action = state->info; state->out_file_attributes = fdos_mode(state->result);