diff options
author | Volker Lendecke <vl@samba.org> | 2012-07-09 21:33:57 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2012-07-18 15:45:58 -0700 |
commit | 9dc78c90f3c952f5c01686da6601c47565016290 (patch) | |
tree | 3ebed9d5dad6fe56d29a51c669abc4b5b02caf00 /source3/smbd/aio.c | |
parent | be05dad399b7e549997acc79add85f5dbbc3d7b7 (diff) | |
download | samba-9dc78c90f3c952f5c01686da6601c47565016290.tar.gz samba-9dc78c90f3c952f5c01686da6601c47565016290.tar.bz2 samba-9dc78c90f3c952f5c01686da6601c47565016290.zip |
s3-aio: Remove unused VFS functions and more
Signed-off-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd/aio.c')
-rw-r--r-- | source3/smbd/aio.c | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/source3/smbd/aio.c b/source3/smbd/aio.c index 9a980e5dda..5f9b5c0b1a 100644 --- a/source3/smbd/aio.c +++ b/source3/smbd/aio.c @@ -23,8 +23,6 @@ #include "smbd/globals.h" #include "../lib/util/tevent_ntstatus.h" -#if defined(HAVE_AIO) - /**************************************************************************** The buffer we keep around whilst an aio request is in process. *****************************************************************************/ @@ -48,11 +46,6 @@ bool aio_write_through_requested(struct aio_extra *aio_ex) return aio_ex->write_through; } -bool initialize_async_io_handler(void) -{ - return true; -} - static int aio_extra_destructor(struct aio_extra *aio_ex) { outstanding_aio_calls--; @@ -891,11 +884,6 @@ static void aio_pwrite_smb2_done(struct tevent_req *req) Handle any aio completion inline. *****************************************************************************/ -void smbd_aio_complete_aio_ex(struct aio_extra *aio_ex) -{ - return; -} - void aio_fsp_close(files_struct *fsp) { unsigned i; @@ -907,67 +895,3 @@ void aio_fsp_close(files_struct *fsp) aio_ex->fsp = NULL; } } - -#else - -bool initialize_async_io_handler(void) -{ - return false; -} - -NTSTATUS schedule_aio_read_and_X(connection_struct *conn, - struct smb_request *smbreq, - files_struct *fsp, off_t startpos, - size_t smb_maxcnt) -{ - return NT_STATUS_RETRY; -} - -NTSTATUS schedule_aio_write_and_X(connection_struct *conn, - struct smb_request *smbreq, - files_struct *fsp, const char *data, - off_t startpos, - size_t numtowrite) -{ - return NT_STATUS_RETRY; -} - -bool cancel_smb2_aio(struct smb_request *smbreq) -{ - return false; -} - -NTSTATUS schedule_smb2_aio_read(connection_struct *conn, - struct smb_request *smbreq, - files_struct *fsp, - TALLOC_CTX *ctx, - DATA_BLOB *preadbuf, - off_t startpos, - size_t smb_maxcnt) -{ - return NT_STATUS_RETRY; -} - -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) -{ - return NT_STATUS_RETRY; -} - -void aio_fsp_close(files_struct *fsp) -{ - return; -} - -int wait_for_aio_completion(files_struct *fsp) -{ - return 0; -} - -void smbd_aio_complete_mid(uint64_t mid); - -#endif |