mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
smbd: Obsolete MSG_SMB_OPEN_RETRY
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
f52a3c3cd1
commit
78d4bdc0b8
@ -68,7 +68,7 @@ interface messaging
|
||||
MSG_SMB_BREAK_REQUEST = 0x0306,
|
||||
/* MSG_SMB_BREAK_RESPONSE = 0x0307, Obsoleted */
|
||||
MSG_SMB_ASYNC_LEVEL2_BREAK = 0x0308,
|
||||
MSG_SMB_OPEN_RETRY = 0x0309,
|
||||
/* MSG_SMB_OPEN_RETRY = 0x0309, Obsoleted */
|
||||
MSG_SMB_KERNEL_BREAK = 0x030A,
|
||||
MSG_SMB_FILE_RENAME = 0x030B,
|
||||
MSG_SMB_INJECT_FAULT = 0x030C,
|
||||
|
@ -241,15 +241,6 @@ static void notify_deferred_opens(struct smbd_server_connection *sconn,
|
||||
* zero.
|
||||
*/
|
||||
schedule_deferred_open_message_smb(sconn, e->op_mid);
|
||||
} else {
|
||||
char msg[MSG_SMB_SHARE_MODE_ENTRY_SIZE];
|
||||
|
||||
share_mode_entry_to_message(msg, e);
|
||||
|
||||
messaging_send_buf(sconn->msg_ctx, e->pid,
|
||||
MSG_SMB_OPEN_RETRY,
|
||||
(uint8 *)msg,
|
||||
MSG_SMB_SHARE_MODE_ENTRY_SIZE);
|
||||
}
|
||||
}
|
||||
TALLOC_FREE(deferred);
|
||||
|
@ -628,37 +628,6 @@ static void process_kernel_oplock_break(struct messaging_context *msg_ctx,
|
||||
add_oplock_timeout_handler(fsp);
|
||||
}
|
||||
|
||||
static void process_open_retry_message(struct messaging_context *msg_ctx,
|
||||
void *private_data,
|
||||
uint32_t msg_type,
|
||||
struct server_id src,
|
||||
DATA_BLOB *data)
|
||||
{
|
||||
struct share_mode_entry msg;
|
||||
struct smbd_server_connection *sconn =
|
||||
talloc_get_type_abort(private_data,
|
||||
struct smbd_server_connection);
|
||||
|
||||
if (data->data == NULL) {
|
||||
DEBUG(0, ("Got NULL buffer\n"));
|
||||
return;
|
||||
}
|
||||
|
||||
if (data->length != MSG_SMB_SHARE_MODE_ENTRY_SIZE) {
|
||||
DEBUG(0, ("Got invalid msg len %d\n", (int)data->length));
|
||||
return;
|
||||
}
|
||||
|
||||
/* De-linearize incoming message. */
|
||||
message_to_share_mode_entry(&msg, (char *)data->data);
|
||||
|
||||
DEBUG(10, ("Got open retry msg from pid %s: %s mid %llu\n",
|
||||
server_id_str(talloc_tos(), &src), file_id_string_tos(&msg.id),
|
||||
(unsigned long long)msg.op_mid));
|
||||
|
||||
schedule_deferred_open_message_smb(sconn, msg.op_mid);
|
||||
}
|
||||
|
||||
struct break_to_none_state {
|
||||
struct smbd_server_connection *sconn;
|
||||
struct file_id id;
|
||||
@ -904,11 +873,6 @@ bool init_oplocks(struct smbd_server_connection *sconn)
|
||||
process_oplock_async_level2_break_message);
|
||||
messaging_register(sconn->msg_ctx, sconn, MSG_SMB_KERNEL_BREAK,
|
||||
process_kernel_oplock_break);
|
||||
#if 0
|
||||
messaging_register(sconn->msg_ctx, sconn, MSG_SMB_OPEN_RETRY,
|
||||
process_open_retry_message);
|
||||
#endif
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user