summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_glusterfs.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2017-06-02 15:26:06 -0700
committerJeremy Allison <jra@samba.org>2017-06-18 02:49:25 +0200
commit4ad426a7c6c9fffa41df5bcafd9f420c257b6805 (patch)
treeba663508bf4d4f21acba85cb2080268439e40c47 /source3/modules/vfs_glusterfs.c
parentfc92d451cf3162807e2493c62fa7617863adf2ba (diff)
downloadsamba-4ad426a7c6c9fffa41df5bcafd9f420c257b6805.tar.gz
s3: VFS: Change SMB_VFS_STATVFS to use const struct smb_filename * instead of const char *.
We need to migrate all pathname based VFS calls to use a struct to finish modernising the VFS with extra timestamp and flags parameters. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Richard Sharpe <realrichardsharpe@gmail.com>
Diffstat (limited to 'source3/modules/vfs_glusterfs.c')
-rw-r--r--source3/modules/vfs_glusterfs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/modules/vfs_glusterfs.c b/source3/modules/vfs_glusterfs.c
index 870983ea8fc..7a42d869d40 100644
--- a/source3/modules/vfs_glusterfs.c
+++ b/source3/modules/vfs_glusterfs.c
@@ -420,16 +420,16 @@ vfs_gluster_set_quota(struct vfs_handle_struct *handle,
}
static int vfs_gluster_statvfs(struct vfs_handle_struct *handle,
- const char *path,
- struct vfs_statvfs_struct *vfs_statvfs)
+ const struct smb_filename *smb_fname,
+ struct vfs_statvfs_struct *vfs_statvfs)
{
struct statvfs statvfs = { 0, };
int ret;
- ret = glfs_statvfs(handle->data, path, &statvfs);
+ ret = glfs_statvfs(handle->data, smb_fname->base_name, &statvfs);
if (ret < 0) {
DEBUG(0, ("glfs_statvfs(%s) failed: %s\n",
- path, strerror(errno)));
+ smb_fname->base_name, strerror(errno)));
return -1;
}