From bddd6004ee400cf90d08d174e9fb867a129433e7 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 4 Dec 2014 21:15:24 -0800 Subject: s3: leases: send_break_message() public. We're going to need this to allow async SMB2 setinfo renames to send lease break messages as well as the open code. Signed-off-by: Jeremy Allison Reviewed-by: Stefan Metzmacher --- source3/smbd/open.c | 2 +- source3/smbd/proto.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/source3/smbd/open.c b/source3/smbd/open.c index c6b67f4ae6..8f19a36cb6 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -1244,7 +1244,7 @@ static NTSTATUS open_mode_check(connection_struct *conn, * our client. */ -static NTSTATUS send_break_message(struct messaging_context *msg_ctx, +NTSTATUS send_break_message(struct messaging_context *msg_ctx, const struct share_mode_entry *exclusive, uint16_t break_to) { diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 3798555682..9980d03132 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -616,6 +616,9 @@ NTSTATUS change_dir_owner_to_parent(connection_struct *conn, const char *fname, SMB_STRUCT_STAT *psbuf); bool is_stat_open(uint32 access_mask); +NTSTATUS send_break_message(struct messaging_context *msg_ctx, + const struct share_mode_entry *exclusive, + uint16_t break_to); struct deferred_open_record; bool is_deferred_open_async(const struct deferred_open_record *rec); NTSTATUS create_directory(connection_struct *conn, struct smb_request *req, -- cgit