]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_aio_pthread: pass smb_fname to open_async()
authorRalph Boehme <slow@samba.org>
Thu, 14 May 2020 14:50:40 +0000 (16:50 +0200)
committerRalph Boehme <slow@samba.org>
Thu, 21 May 2020 05:23:30 +0000 (05:23 +0000)
Not yet used.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_aio_pthread.c

index 45b59bcb8136016f4f233d36c8b8ab54c4f21d52..0b1a4caaa83f9409265e8b6c06eb60cb63e63b35 100644 (file)
@@ -333,9 +333,10 @@ static int opd_inflight_destructor(struct aio_open_private_data *opd)
  Setup an async open.
 *****************************************************************/
 
-static int open_async(const files_struct *fsp,
-                       int flags,
-                       mode_t mode)
+static int open_async(const struct smb_filename *smb_fname,
+                     const files_struct *fsp,
+                     int flags,
+                     mode_t mode)
 {
        struct aio_open_private_data *opd = NULL;
        struct tevent_req *subreq = NULL;
@@ -479,7 +480,7 @@ static int aio_pthread_open_fn(vfs_handle_struct *handle,
        }
 
        /* Ok, it's a create exclusive call - pass it to a thread helper. */
-       return open_async(fsp, flags, mode);
+       return open_async(smb_fname, fsp, flags, mode);
 }
 #endif