vfs_aio_pthread: use SMB_VFS_NEXT_OPENAT() in aio_pthread_openat_fn()
authorMikeLiu <mikeliu@qnap.com>
Tue, 22 Aug 2023 02:01:14 +0000 (10:01 +0800)
committerJule Anger <janger@samba.org>
Mon, 4 Sep 2023 09:35:04 +0000 (09:35 +0000)
commit1361e545452faca0d2f85d4a82aa06535c129d76
tree3ebaac5556f07a5721f66598bdaa0863792fba4a
parent8d1e4f1d4f183bde3a741e0ffccf2ac7c4f08d4e
vfs_aio_pthread: use SMB_VFS_NEXT_OPENAT() in aio_pthread_openat_fn()

1. Set 'aio_allow_open' to false if fsp->fsp_flags.is_pathref
2. Move !(how->flags & O_CREAT) and !(how->flags & O_EXCL) up and set 'aio_allow_open' to false
3. Use SMB_VFS_NEXT_OPENAT() instead of openat() for disable async opens case.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15453

Signed-off-by: MikeLiu <mikeliu@qnap.com>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Aug 22 17:44:00 UTC 2023 on atb-devel-224

Autobuild-User(v4-17-test): Jule Anger <janger@samba.org>
Autobuild-Date(v4-17-test): Mon Sep  4 09:35:04 UTC 2023 on sn-devel-184
source3/modules/vfs_aio_pthread.c