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:19 +0000 (09:58 +0200)
commit139743ec1ed9078be0891e416c536305b6dd1b33
tree3396e22a99433bf479d58c884cbd3cf4bd23c497
parentbf466d26a9d48e19caa887c3c15781739c2d120d
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