vfs_ceph: add fs_capabilities hook to avoid local statvfs
commitda6ee0cf34af010d0796abddd06c83887e61c88e
authorDavid Disseldorp <ddiss@samba.org>
Wed, 10 Jan 2018 00:37:14 +0000 (10 01:37 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 22 Jan 2018 07:51:23 +0000 (22 08:51 +0100)
tree797bad239b75f53bf2834838c4c1163226b0b0c9
parentd251dcc909f11f382000aaaf1d647287dacc213a
vfs_ceph: add fs_capabilities hook to avoid local statvfs

Adding the fs_capabilities() hook to the CephFS VFS module avoids
fallback to the vfs_default code-path, which calls statvfs() against the
share path on the *local* filesystem.

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

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