summaryrefslogtreecommitdiff
path: root/source3/smbd/smb2_read.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-03-31 17:40:30 -0700
committerJeremy Allison <jra@samba.org>2010-03-31 17:40:30 -0700
commit6800fdbb81130b79c2e077e9a7fcbe2d5e0813cb (patch)
treed2fcafbd48c8e07b02765a0863e4de03fbf447d6 /source3/smbd/smb2_read.c
parentbb54089503907745a33a09cb27ead565d1205165 (diff)
downloadsamba-6800fdbb81130b79c2e077e9a7fcbe2d5e0813cb.tar.gz
samba-6800fdbb81130b79c2e077e9a7fcbe2d5e0813cb.tar.bz2
samba-6800fdbb81130b79c2e077e9a7fcbe2d5e0813cb.zip
Make smbd_lock_socket/smbd_unlock_socket recursive with a ref_count.
As these always call exit_server, make that part of the function. Use _internal functions for the echo client. Metze please check ! Jeremy.
Diffstat (limited to 'source3/smbd/smb2_read.c')
-rw-r--r--source3/smbd/smb2_read.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/smbd/smb2_read.c b/source3/smbd/smb2_read.c
index 3f316e0b71..674fa2b71f 100644
--- a/source3/smbd/smb2_read.c
+++ b/source3/smbd/smb2_read.c
@@ -275,6 +275,14 @@ static struct tevent_req *smbd_smb2_read_send(TALLOC_CTX *mem_ctx,
SMB_VFS_STRICT_UNLOCK(conn, fsp, &lock);
+ DEBUG(10,("smbd_smb2_read: file %s handle [0x%016llX] offset=%llu "
+ "len=%llu returned %lld\n",
+ fsp_str_dbg(fsp),
+ (unsigned long long)in_file_id_volatile,
+ (unsigned long long)in_offset,
+ (unsigned long long)in_length,
+ (long long)nread));
+
if (nread < 0) {
DEBUG(5,("smbd_smb2_read: read_file[%s] nread[%lld]\n",
fsp_str_dbg(fsp), (long long)nread));