summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/modules/onefs_cbrl.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/modules/onefs_cbrl.c b/source3/modules/onefs_cbrl.c
index 539b1a7d49..a860023764 100644
--- a/source3/modules/onefs_cbrl.c
+++ b/source3/modules/onefs_cbrl.c
@@ -318,7 +318,8 @@ NTSTATUS onefs_brl_lock_windows(vfs_handle_struct *handle,
DEBUG(10, ("Calling ifs_cbrl(LOCK)..."));
error = ifs_cbrl(fd, CBRL_OP_LOCK, exclusive, plock->start,
- plock->size, async, id, plock->context.smbpid, plock->context.tid);
+ plock->size, async, id, plock->context.smbpid, plock->context.tid,
+ plock->fnum);
if (!error) {
goto success;
} else if (errno == EWOULDBLOCK) {
@@ -376,7 +377,7 @@ bool onefs_brl_unlock_windows(vfs_handle_struct *handle,
DEBUG(10, ("Calling ifs_cbrl(UNLOCK)..."));
error = ifs_cbrl(fd, CBRL_OP_UNLOCK, CBRL_NOTYPE,
plock->start, plock->size, CBRL_NOTYPE, 0, plock->context.smbpid,
- plock->context.tid);
+ plock->context.tid, plock->fnum);
if (error) {
DEBUG(10, ("returning false.\n"));
return false;
@@ -425,7 +426,7 @@ bool onefs_brl_cancel_windows(vfs_handle_struct *handle,
DEBUG(10, ("Calling ifs_cbrl(CANCEL)..."));
error = ifs_cbrl(fd, CBRL_OP_CANCEL, CBRL_NOTYPE, plock->start,
plock->size, CBRL_NOTYPE, bs->id, plock->context.smbpid,
- plock->context.tid);
+ plock->context.tid, plock->fnum);
if (error) {
DEBUG(10, ("returning false\n"));
bs->state = ONEFS_CBRL_ERROR;