]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: do_lock() never sees blocking locks anymore
authorVolker Lendecke <vl@samba.org>
Mon, 1 Jul 2019 12:42:50 +0000 (14:42 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 2 Jul 2019 17:01:27 +0000 (17:01 +0000)
This is now all handled in protocol-specific layers

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/locking/locking.c
source3/locking/proto.h
source3/modules/vfs_fruit.c
source3/smbd/blocking.c

index cda1d9d82652510214818c4e9b4c1ed8e836f4f6..b628556d5b97b9b31770d365617c25d75f8df685 100644 (file)
@@ -237,7 +237,6 @@ NTSTATUS do_lock(struct messaging_context *msg_ctx,
                 uint64_t offset,
                 enum brl_type lock_type,
                 enum brl_flavour lock_flav,
-                bool blocking_lock,
                 struct server_id *pblocker_pid,
                 uint64_t *psmblctx)
 {
@@ -265,12 +264,11 @@ NTSTATUS do_lock(struct messaging_context *msg_ctx,
        /* NOTE! 0 byte long ranges ARE allowed and should be stored  */
 
        DBG_DEBUG("lock flavour %s lock type %s start=%"PRIu64" len=%"PRIu64" "
-                 "blocking_lock=%s requested for %s file %s\n",
+                 "requested for %s file %s\n",
                  lock_flav_name(lock_flav),
                  lock_type_name(lock_type),
                  offset,
                  count,
-                 blocking_lock ? "true" : "false",
                  fsp_fnum_dbg(fsp),
                  fsp_str_dbg(fsp));
 
@@ -288,7 +286,7 @@ NTSTATUS do_lock(struct messaging_context *msg_ctx,
                count,
                lock_type,
                lock_flav,
-               blocking_lock,
+               false,
                &blocker_pid,
                &blocker_smblctx);
 
index aee8ce32e3b20790f031da44e51bc5a57f00ad0f..69c6889f89f69f1cddfb6a6d7904bb53a2793898 100644 (file)
@@ -108,7 +108,6 @@ NTSTATUS do_lock(struct messaging_context *msg_ctx,
                 uint64_t offset,
                 enum brl_type lock_type,
                 enum brl_flavour lock_flav,
-                bool blocking_lock,
                 struct server_id *pblocker_pid,
                 uint64_t *psmblctx);
 NTSTATUS do_unlock(struct messaging_context *msg_ctx,
index 0952027baa43d162c8046458e85f4501fc5cdec5..bf87de5c5f64f27ccdd3bb57b4b21fbb9fca95d1 100644 (file)
@@ -2752,7 +2752,6 @@ static NTSTATUS fruit_check_access(vfs_handle_struct *handle,
                        off,
                        READ_LOCK,
                        POSIX_LOCK,
-                       false,  /* blocking_lock */
                        NULL,
                        NULL);
 
@@ -2771,7 +2770,6 @@ static NTSTATUS fruit_check_access(vfs_handle_struct *handle,
                        off,
                        READ_LOCK,
                        POSIX_LOCK,
-                       false,  /* blocking_lock */
                        NULL,
                        NULL);
 
@@ -2790,7 +2788,6 @@ static NTSTATUS fruit_check_access(vfs_handle_struct *handle,
                        off,
                        READ_LOCK,
                        POSIX_LOCK,
-                       false,
                        NULL,
                        NULL);
 
@@ -2809,7 +2806,6 @@ static NTSTATUS fruit_check_access(vfs_handle_struct *handle,
                        off,
                        READ_LOCK,
                        POSIX_LOCK,
-                       false,
                        NULL,
                        NULL);
 
index 30357d7ce2b43810dedf2e52942c0e811f692717..d7f071aa7be0436098909ad0115cb4d4fce0f703 100644 (file)
@@ -68,7 +68,6 @@ NTSTATUS smbd_do_locks_try(
                        e->offset,
                        e->brltype,
                        lock_flav,
-                       false,  /* blocking_lock */
                        blocking_pid,
                        blocking_smblctx);
                if (!NT_STATUS_IS_OK(status)) {