diff options
author | Jeremy Allison <jra@samba.org> | 2010-04-27 17:07:44 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2010-04-27 17:07:44 -0700 |
commit | 33256e41e1ed7a4a2caeef2f0cf26d0abb9032ca (patch) | |
tree | cb1c42e8b94f371cc5a66092db2903e96a5c8151 /source3 | |
parent | f56d9006d5790b8b752c72600ccd3942a2742f17 (diff) | |
download | samba-33256e41e1ed7a4a2caeef2f0cf26d0abb9032ca.tar.gz samba-33256e41e1ed7a4a2caeef2f0cf26d0abb9032ca.tar.bz2 samba-33256e41e1ed7a4a2caeef2f0cf26d0abb9032ca.zip |
Add debug statements so I can track the flow of RPC data.
Jeremy.
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/smb2_ioctl.c | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/source3/smbd/smb2_ioctl.c b/source3/smbd/smb2_ioctl.c index 0041e5f7d0..7773da6291 100644 --- a/source3/smbd/smb2_ioctl.c +++ b/source3/smbd/smb2_ioctl.c @@ -127,6 +127,12 @@ static void smbd_smb2_request_ioctl_done(struct tevent_req *subreq) NTSTATUS error; /* transport error */ status = smbd_smb2_ioctl_recv(subreq, req, &out_output_buffer); + + DEBUG(10,("smbd_smb2_request_ioctl_done: smbd_smb2_ioctl_recv returned " + "%u status %s\n", + (unsigned int)out_output_buffer.length, + nt_errstr(status) )); + TALLOC_FREE(subreq); if (NT_STATUS_EQUAL(status, STATUS_BUFFER_OVERFLOW)) { /* also ok */ @@ -353,6 +359,9 @@ static struct tevent_req *smbd_smb2_ioctl_send(TALLOC_CTX *mem_ctx, return tevent_req_post(req, ev); } + DEBUG(10,("smbd_smb2_ioctl_send: np_write_send of size %u\n", + (unsigned int)in_input.length )); + subreq = np_write_send(state, ev, fsp->fake_file_handle, in_input.data, @@ -388,6 +397,10 @@ static void smbd_smb2_ioctl_pipe_write_done(struct tevent_req *subreq) ssize_t nwritten = -1; status = np_write_recv(subreq, &nwritten); + + DEBUG(10,("smbd_smb2_ioctl_pipe_write_done: received %ld\n", + (long int)nwritten )); + TALLOC_FREE(subreq); if (!NT_STATUS_IS_OK(status)) { tevent_req_nterror(req, status); @@ -405,6 +418,11 @@ static void smbd_smb2_ioctl_pipe_write_done(struct tevent_req *subreq) return; } + DEBUG(10,("smbd_smb2_ioctl_pipe_write_done: issuing np_read_send " + "of size %u\n", + (unsigned int)state->out_output.length )); + + TALLOC_FREE(subreq); subreq = np_read_send(state->smbreq->conn, state->smb2req->sconn->smb2.event_ctx, state->fsp->fake_file_handle, @@ -423,10 +441,17 @@ static void smbd_smb2_ioctl_pipe_read_done(struct tevent_req *subreq) struct smbd_smb2_ioctl_state *state = tevent_req_data(req, struct smbd_smb2_ioctl_state); NTSTATUS status; - ssize_t nread; - bool is_data_outstanding; + ssize_t nread = -1; + bool is_data_outstanding = false; status = np_read_recv(subreq, &nread, &is_data_outstanding); + + DEBUG(10,("smbd_smb2_ioctl_pipe_read_done: np_read_recv nread = %d " + "is_data_outstanding = %d, status = %s\n", + (int)nread, + (int)is_data_outstanding, + nt_errstr(status) )); + TALLOC_FREE(subreq); if (!NT_STATUS_IS_OK(status)) { tevent_req_nterror(req, status); |