Author: obnox
Date: 2007-04-20 12:06:38 +0000 (Fri, 20 Apr 2007)
New Revision: 22411

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22411

Log:
Fix the build:

Prototype of create_aio_ex_read, set_message and definition of
UNIXERROR have changed in r22389 and r22391? to require an additional
"inbuf" argument. Some places in smbd/aio.c had not been adapted.

This patch fixes the build.

Michael


Modified:
   branches/SAMBA_3_0/source/smbd/aio.c


Changeset:
Modified: branches/SAMBA_3_0/source/smbd/aio.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/aio.c        2007-04-20 11:44:45 UTC (rev 
22410)
+++ branches/SAMBA_3_0/source/smbd/aio.c        2007-04-20 12:06:38 UTC (rev 
22411)
@@ -242,7 +242,7 @@
        bufsize = PTR_DIFF(smb_buf(outbuf),outbuf) + smb_maxcnt;
 
        if ((aio_ex = create_aio_ex_read(fsp, bufsize,
-                                        SVAL(inbuf,smb_mid))) == NULL) {
+                                        SVAL(inbuf,smb_mid), inbuf)) == NULL) {
                DEBUG(10,("schedule_aio_read_and_X: malloc fail.\n"));
                return False;
        }
@@ -382,6 +382,7 @@
        int ret = 0;
        int outsize;
        char *outbuf = aio_ex->outbuf;
+       char *inbuf = aio_ex->inbuf;
        char *data = smb_buf(outbuf);
        ssize_t nread = SMB_VFS_AIO_RETURN(aio_ex->fsp,&aio_ex->acb);
 
@@ -405,7 +406,7 @@
                outsize = (UNIXERROR(ERRDOS,ERRnoaccess));
                ret = errno;
        } else {
-               outsize = set_message(outbuf,12,nread,False);
+               outsize = set_message(inbuf,outbuf,12,nread,False);
                SSVAL(outbuf,smb_vwv2,0xFFFF); /* Remaining - must be * -1. */
                SSVAL(outbuf,smb_vwv5,nread);
                SSVAL(outbuf,smb_vwv6,smb_offset(data,outbuf));
@@ -418,7 +419,7 @@
                            aio_ex->acb.aio_nbytes, (int)nread ) );
 
        }
-       smb_setlen(aio_ex->inbuf,outbuf,outsize - 4);
+       smb_setlen(inbuf,outbuf,outsize - 4);
        show_msg(outbuf);
        if (!send_smb(smbd_server_fd(),outbuf)) {
                exit_server_cleanly("handle_aio_read_complete: send_smb "
@@ -443,6 +444,7 @@
        int ret = 0;
        files_struct *fsp = aio_ex->fsp;
        char *outbuf = aio_ex->outbuf;
+       char *inbuf = aio_ex->inbuf;
        ssize_t numtowrite = aio_ex->acb.aio_nbytes;
        ssize_t nwritten = SMB_VFS_AIO_RETURN(fsp,&aio_ex->acb);
 

Reply via email to