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:
4ae96bb
)
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
Stefan Metzmacher
<metze@samba.org>
Sat, 9 Jun 2012 13:02:47 +0000
(15:02 +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
source3/smbd/smb2_read.c
patch
|
blob
|
history
diff --git
a/source3/smbd/smb2_read.c
b/source3/smbd/smb2_read.c
index d69ead9a75f1875983d81ffe3fe15e2fe54e1529..abaf4c66c214df39c8b5cbd9b35b9646fa4dca4a 100644
(file)
--- a/
source3/smbd/smb2_read.c
+++ b/
source3/smbd/smb2_read.c
@@
-255,7
+255,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,
@@
-497,7
+497,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,