From 60e18904e676c1360950cc8342778f5dee4cd8e2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Wed, 13 Jul 2005 00:26:52 +0000 Subject: [PATCH] r8402: allow to build with --enable-aio-support. Guenther (This used to be commit 49351d91c59b2e96ebddb2d721e660dcd90ec815) --- source3/smbd/aio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source3/smbd/aio.c b/source3/smbd/aio.c index 7910ee5a7aa..d19706ff61a 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. */ } } -- 2.11.4.GIT