summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2005-07-13 00:26:52 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:00:04 -0500
commit60e18904e676c1360950cc8342778f5dee4cd8e2 (patch)
tree07813457bac5d5c516bdb06ff152810163dca817 /source3
parent40035db926c66f849df4111736b4d3db3a98e249 (diff)
downloadsamba-60e18904e676c1360950cc8342778f5dee4cd8e2.tar.gz
samba-60e18904e676c1360950cc8342778f5dee4cd8e2.tar.bz2
samba-60e18904e676c1360950cc8342778f5dee4cd8e2.zip
r8402: allow to build with --enable-aio-support.
Guenther (This used to be commit 49351d91c59b2e96ebddb2d721e660dcd90ec815)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/aio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/aio.c b/source3/smbd/aio.c
index 7910ee5a7a..d19706ff61 100644
--- a/source3/smbd/aio.c
+++ b/source3/smbd/aio.c
@@ -242,7 +242,7 @@ BOOL schedule_aio_read_and_X(connection_struct *conn,
/* Now set up the aio record for the read call. */
- a->aio_fildes = fsp->fd;
+ a->aio_fildes = fsp->fh->fd;
a->aio_buf = smb_buf(aio_ex->outbuf);
a->aio_nbytes = smb_maxcnt;
a->aio_offset = startpos;
@@ -321,7 +321,7 @@ BOOL schedule_aio_write_and_X(connection_struct *conn,
/* Now set up the aio record for the write call. */
- a->aio_fildes = fsp->fd;
+ a->aio_fildes = fsp->fh->fd;
a->aio_buf = data; /* As we've stolen inbuf this points within inbuf. */
a->aio_nbytes = numtowrite;
a->aio_offset = startpos;
@@ -677,7 +677,7 @@ void cancel_aio_by_fsp(files_struct *fsp)
if (aio_ex->fsp == fsp) {
/* Don't delete the aio_extra record as we may have completed
and don't yet know it. Just do the aio_cancel call and return. */
- SMB_VFS_AIO_CANCEL(fsp,fsp->fd, &aio_ex->acb);
+ SMB_VFS_AIO_CANCEL(fsp,fsp->fh->fd, &aio_ex->acb);
aio_ex->fsp = NULL; /* fsp will be closed when we return. */
}
}