summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-02-24 00:01:07 +0100
committerVolker Lendecke <vl@samba.org>2008-02-24 00:05:40 +0100
commitdb9db9cef9b1ec04952ff7f0079cdff1e6ea8016 (patch)
tree851deed8f73aa5919917ec77d5723780dc46a467 /source3
parenta5e43bc81711e25cb07224df5e64f0120d4ef500 (diff)
downloadsamba-db9db9cef9b1ec04952ff7f0079cdff1e6ea8016.tar.gz
samba-db9db9cef9b1ec04952ff7f0079cdff1e6ea8016.tar.bz2
samba-db9db9cef9b1ec04952ff7f0079cdff1e6ea8016.zip
AIO on streams does not work (yet...)
(This used to be commit 1ba223f202a070a695581e0d7161473a3ebf4332)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/aio.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/smbd/aio.c b/source3/smbd/aio.c
index 8c6eaf1498..59dd9a9568 100644
--- a/source3/smbd/aio.c
+++ b/source3/smbd/aio.c
@@ -202,6 +202,12 @@ bool schedule_aio_read_and_X(connection_struct *conn,
size_t bufsize;
size_t min_aio_read_size = lp_aio_read_size(SNUM(conn));
+ if (fsp->base_fsp != NULL) {
+ /* No AIO on streams yet */
+ DEBUG(10, ("AIO on streams not yet supported\n"));
+ return false;
+ }
+
if ((!min_aio_read_size || (smb_maxcnt < min_aio_read_size))
&& !SMB_VFS_AIO_FORCE(fsp)) {
/* Too small a read for aio request. */
@@ -285,6 +291,12 @@ bool schedule_aio_write_and_X(connection_struct *conn,
bool write_through = BITSETW(req->inbuf+smb_vwv7,0);
size_t min_aio_write_size = lp_aio_write_size(SNUM(conn));
+ if (fsp->base_fsp != NULL) {
+ /* No AIO on streams yet */
+ DEBUG(10, ("AIO on streams not yet supported\n"));
+ return false;
+ }
+
if ((!min_aio_write_size || (numtowrite < min_aio_write_size))
&& !SMB_VFS_AIO_FORCE(fsp)) {
/* Too small a write for aio request. */