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>
Sat, 13 Jan 2018 02:03:46 +0000 (03:03 +0100)
commit2724e0cac29cd1632ea28075a740fcc888affb36
tree5feaa7da23ba083a78bcbc18382f16db68fa21c1
parent3297f4c9bfeb8c9f20829c6a096ea1cebf3772c4
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