summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-06-10 13:20:37 -0700
committerJeremy Allison <jra@samba.org>2010-06-10 13:20:37 -0700
commit321d7a6303b651cc2533f4b72dc7cef6b7d64da4 (patch)
tree6f5a24f98802ceaa5eded1dd7d1bfe2288f5520b /source3/include
parentedd8940e1864deedaf0f6484809def586ac215f2 (diff)
downloadsamba-321d7a6303b651cc2533f4b72dc7cef6b7d64da4.tar.gz
samba-321d7a6303b651cc2533f4b72dc7cef6b7d64da4.tar.bz2
samba-321d7a6303b651cc2533f4b72dc7cef6b7d64da4.zip
Implement AIO in SMB2. Doesn't allow cancel calls yet (to be added).
Jeremy.
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/proto.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index f0538ee401..e6aec3a6e4 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -5332,6 +5332,18 @@ NTSTATUS schedule_aio_write_and_X(connection_struct *conn,
files_struct *fsp, char *data,
SMB_OFF_T startpos,
size_t numtowrite);
+NTSTATUS schedule_smb2_aio_read(connection_struct *conn,
+ struct smb_request *smbreq,
+ files_struct *fsp,
+ char *inbuf,
+ SMB_OFF_T startpos,
+ size_t smb_maxcnt);
+NTSTATUS schedule_aio_smb2_write(connection_struct *conn,
+ struct smb_request *smbreq,
+ files_struct *fsp,
+ uint64_t in_offset,
+ DATA_BLOB in_data,
+ bool write_through);
int wait_for_aio_completion(files_struct *fsp);
void cancel_aio_by_fsp(files_struct *fsp);
void smbd_aio_complete_aio_ex(struct aio_extra *aio_ex);