git.samba.org
/
ddiss
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
09dde2e
)
s3:smb2_lock: use fsp->fnum as locking context
author
Stefan Metzmacher
<metze@samba.org>
Fri, 8 Jun 2012 09:19:00 +0000
(11:19 +0200)
committer
Karolin Seeger
<kseeger@samba.org>
Sun, 17 Jun 2012 19:00:57 +0000
(21:00 +0200)
fsp->fnum is the same as in_file_id_volatile.
When we start to support durable handles we should pass
in_file_id_persistent.
metze
Signed-off-by: Jeremy Allison <jra@samba.org>
source3/smbd/smb2_lock.c
patch
|
blob
|
history
diff --git
a/source3/smbd/smb2_lock.c
b/source3/smbd/smb2_lock.c
index f4611eb06dd004b442882048196d65300f868bf3..be403eefe8e50b8dc7dc93a9ea46e7bbbf173db1 100644
(file)
--- a/
source3/smbd/smb2_lock.c
+++ b/
source3/smbd/smb2_lock.c
@@
-335,7
+335,7
@@
static struct tevent_req *smbd_smb2_lock_send(TALLOC_CTX *mem_ctx,
return tevent_req_post(req, ev);
}
- locks[i].smblctx =
in_file_id_volatile
;
+ locks[i].smblctx =
fsp->fnum
;
locks[i].offset = in_locks[i].offset;
locks[i].count = in_locks[i].length;