vfs_ceph: add fs_capabilities hook to avoid local statvfs
authorDavid Disseldorp <ddiss@samba.org>
Wed, 10 Jan 2018 00:37:14 +0000 (01:37 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 11 Jan 2018 16:39:04 +0000 (08:39 -0800)
commitfabe1826acddfa2905a5d2140cfcfabfaf07b67f
tree000a1d50a7eed7fed1df63721a888161278fc802
parent4519134ef72511c1d6a7321a6641dd869b4f2759
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>
source3/modules/vfs_ceph.c