summaryrefslogtreecommitdiffstats
path: root/source3/smbd/smb2_write.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_write.c
parentbb54089503907745a33a09cb27ead565d1205165 (diff)
downloadsamba-6800fdbb81130b79c2e077e9a7fcbe2d5e0813cb.tar.gz
samba-6800fdbb81130b79c2e077e9a7fcbe2d5e0813cb.tar.xz
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_write.c')
-rw-r--r--source3/smbd/smb2_write.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/smbd/smb2_write.c b/source3/smbd/smb2_write.c
index fa209fafc73..17d562affa1 100644
--- a/source3/smbd/smb2_write.c
+++ b/source3/smbd/smb2_write.c
@@ -266,6 +266,15 @@ static struct tevent_req *smbd_smb2_write_send(TALLOC_CTX *mem_ctx,
in_offset,
in_data.length);
+
+ DEBUG(10,("smbd_smb2_write: 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_data.length,
+ (long long)nwritten));
+
if (((nwritten == 0) && (in_data.length != 0)) || (nwritten < 0)) {
DEBUG(5,("smbd_smb2_write: write_file[%s] disk full\n",
fsp_str_dbg(fsp)));