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
(parent:
c47b3ff
)
s3:smb2_read: pass fsp->fnum to init_strict_lock_struct()
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:58 +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_read.c
patch
|
blob
|
history
diff --git
a/source3/smbd/smb2_read.c
b/source3/smbd/smb2_read.c
index 21082e67cd8aef244711c989838d56442d2fc4f1..3c4b3e75bdd1b55681388caeaaffc16d99937314 100644
(file)
--- a/
source3/smbd/smb2_read.c
+++ b/
source3/smbd/smb2_read.c
@@
-252,7
+252,7
@@
static int smb2_sendfile_send_data(struct smbd_smb2_read_state *state)
}
init_strict_lock_struct(fsp,
-
state->in_file_id_volatile
,
+
fsp->fnum
,
in_offset,
in_length,
READ_LOCK,
@@
-486,7
+486,7
@@
static struct tevent_req *smbd_smb2_read_send(TALLOC_CTX *mem_ctx,
/* Fallback to synchronous. */
init_strict_lock_struct(fsp,
-
in_file_id_volatile
,
+
fsp->fnum
,
in_offset,
in_length,
READ_LOCK,