vfs_ceph: add fs_capabilities hook to avoid local statvfs
commita6b780c52b251505e50607d6f77f57330b830b00
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:50:09 +0000 (22 08:50 +0100)
treeaa2c735a5c36db141a872ff2007337f91648e516
parent579b6a4f603c97480a319353dcd7319dcbcb521e
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