vfs_aio_fork: Fix a crash in aio_fork
authorVolker Lendecke <vl@samba.org>
Thu, 7 Dec 2017 19:53:18 +0000 (20:53 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 12 Dec 2017 19:37:08 +0000 (20:37 +0100)
commitf2dcec97a897cd54c9d71fcd91e76da518b1e98e
treee3ca2bafb263332bc26045507897e00bb5f73ec4
parentd25e6c3441498f05746a8307d0237fed92aef58c
vfs_aio_fork: Fix a crash in aio_fork

Since the introduction of the vfs_aio_fork:erratic_testing_mode this
crashed reliably, as we had two different structs behind
SMB_VFS_HANDLE_SET_DATA. I had always believed that due to the fact that
we have specific aio_fork tests in our autobuild, this would have been
tested. But it was not, because the share definition missed the the "aio
read/write size = 1" to actually use the async code in vfs_aio_fork.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/modules/vfs_aio_fork.c