diff options
author | Jeremy Allison <jra@samba.org> | 2010-12-14 16:32:10 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2010-12-15 01:38:16 +0100 |
commit | 14c70346fc88d05dfabc14b0a932632470fee6fe (patch) | |
tree | d1382cdcb7bf0cb0804a7f374b92044b30cc9a83 /source3/include | |
parent | 3bc1cf94e3a0febe8d3d53229aa49c3d8eb8c1b6 (diff) | |
download | samba-14c70346fc88d05dfabc14b0a932632470fee6fe.tar.gz samba-14c70346fc88d05dfabc14b0a932632470fee6fe.tar.bz2 samba-14c70346fc88d05dfabc14b0a932632470fee6fe.zip |
Change interface of schedule_smb2_aio_read() to allocate the return DATA_BLOB.
Change smb2_read code to allocate return DATA_BLOB just before the read.
Preparing for SMB2 sendfile change which will not need to allocate
return buffer.
Jeremy
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/proto.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index 084d97f16e..2ba2153258 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -4438,7 +4438,8 @@ NTSTATUS schedule_aio_write_and_X(connection_struct *conn, NTSTATUS schedule_smb2_aio_read(connection_struct *conn, struct smb_request *smbreq, files_struct *fsp, - char *inbuf, + TALLOC_CTX *ctx, + DATA_BLOB *preadbuf, SMB_OFF_T startpos, size_t smb_maxcnt); NTSTATUS schedule_aio_smb2_write(connection_struct *conn, |