vfs_ceph: add fake async pwrite/pread send/recv hooks
authorDavid Disseldorp <ddiss@samba.org>
Wed, 9 May 2018 14:51:34 +0000 (16:51 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 14 May 2018 07:58:07 +0000 (09:58 +0200)
commit54c537a0eebc8a4450cc71b25b605719f44e2af0
treec76cfbac05bff34fa0bed0c50954092027d931d2
parent01c335ddd88ccbac2210af1c19f80c76326d168b
vfs_ceph: add fake async pwrite/pread send/recv hooks

As found by Jeremy, VFS modules that don't provide pread_send() or
pwrite_send() hooks result in vfs_default fallback, which is
catastrophic for VFS modules with non-mounted filesystems such as
vfs_ceph.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=13425

Reported-by: Jeremy Allison <jra@samba.org>
Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit f0e6453b0420fe9d062936d4ddc05f44b40cf2ba)
source3/modules/vfs_ceph.c