summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_ceph.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/modules/vfs_ceph.c')
-rw-r--r--source3/modules/vfs_ceph.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/modules/vfs_ceph.c b/source3/modules/vfs_ceph.c
index 1d9bf13a289..638118b5c5b 100644
--- a/source3/modules/vfs_ceph.c
+++ b/source3/modules/vfs_ceph.c
@@ -244,12 +244,14 @@ static int cephwrap_set_quota(struct vfs_handle_struct *handle, enum SMB_QUOTA_
#endif
}
-static int cephwrap_statvfs(struct vfs_handle_struct *handle, const char *path, vfs_statvfs_struct *statbuf)
+static int cephwrap_statvfs(struct vfs_handle_struct *handle,
+ const struct smb_filename *smb_fname,
+ vfs_statvfs_struct *statbuf)
{
struct statvfs statvfs_buf;
int ret;
- ret = ceph_statfs(handle->data, path, &statvfs_buf);
+ ret = ceph_statfs(handle->data, smb_fname->base_name, &statvfs_buf);
if (ret < 0) {
WRAP_RETURN(ret);
} else {