summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/globals.h17
-rw-r--r--source3/smbd/reply.c25
2 files changed, 26 insertions, 16 deletions
diff --git a/source3/smbd/globals.h b/source3/smbd/globals.h
index 3d195c84f0..8163213dd0 100644
--- a/source3/smbd/globals.h
+++ b/source3/smbd/globals.h
@@ -168,6 +168,23 @@ NTSTATUS smb2_signing_check_pdu(DATA_BLOB session_key,
const struct iovec *vector,
int count);
+struct smbd_lock_element {
+ uint32_t smbpid;
+ enum brl_type brltype;
+ uint64_t offset;
+ uint64_t count;
+};
+
+NTSTATUS smbd_do_locking(struct smb_request *req,
+ files_struct *fsp,
+ uint8_t type,
+ int32_t timeout,
+ uint16_t num_ulocks,
+ struct smbd_lock_element *ulocks,
+ uint16_t num_locks,
+ struct smbd_lock_element *locks,
+ bool *async);
+
void smbd_server_connection_terminate_ex(struct smbd_server_connection *sconn,
const char *reason,
const char *location);
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 4a915d6f90..98ee83ea83 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -7223,22 +7223,15 @@ uint64_t get_lock_offset(const uint8_t *data, int data_offset,
return offset;
}
-struct smbd_lock_element {
- uint32_t smbpid;
- enum brl_type brltype;
- uint64_t offset;
- uint64_t count;
-};
-
-static NTSTATUS smbd_do_locking(struct smb_request *req,
- files_struct *fsp,
- uint8_t type,
- int32_t timeout,
- uint16_t num_ulocks,
- struct smbd_lock_element *ulocks,
- uint16_t num_locks,
- struct smbd_lock_element *locks,
- bool *async)
+NTSTATUS smbd_do_locking(struct smb_request *req,
+ files_struct *fsp,
+ uint8_t type,
+ int32_t timeout,
+ uint16_t num_ulocks,
+ struct smbd_lock_element *ulocks,
+ uint16_t num_locks,
+ struct smbd_lock_element *locks,
+ bool *async)
{
connection_struct *conn = req->conn;
int i;