smbd: Fix confusing comments
authorVolker Lendecke <vl@samba.org>
Tue, 3 Sep 2013 13:31:27 +0000 (13:31 +0000)
committerStefan Metzmacher <metze@samba.org>
Sun, 6 Oct 2013 11:54:33 +0000 (13:54 +0200)
The brlock-check is done in grant_fsp_oplock_type

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/open.c
source3/smbd/oplock.c

index 1a86233fd9ff2faaf553a86bfa3f79bee5c4b204..858d2befc2e44bb48c2cc221862552e577c40eda 100644 (file)
@@ -2676,8 +2676,7 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn,
        status = set_file_oplock(fsp, fsp->oplock_type);
        if (!NT_STATUS_IS_OK(status)) {
                /*
-                * Could not get the kernel oplock or there are byte-range
-                * locks on the file.
+                * Could not get the kernel oplock
                 */
                fsp->oplock_type = NO_OPLOCK;
        }
index 96c451cd11ec6ffa2978cafbaf24f83caed6e7af..efb37e17feba5a30cc9bea2767f6ba5acfce6a3f 100644 (file)
@@ -47,8 +47,7 @@ void break_kernel_oplock(struct messaging_context *msg_ctx, files_struct *fsp)
 
 /****************************************************************************
  Attempt to set an oplock on a file. Succeeds if kernel oplocks are
- disabled (just sets flags) and no byte-range locks in the file. Returns True
- if oplock set.
+ disabled (just sets flags).
 ****************************************************************************/
 
 NTSTATUS set_file_oplock(files_struct *fsp, int oplock_type)