diff options
author | Jeremy Allison <jra@samba.org> | 2017-06-02 14:21:54 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2017-06-18 02:49:25 +0200 |
commit | fc92d451cf3162807e2493c62fa7617863adf2ba (patch) | |
tree | fe8a0bd156eb1fc5f5337212fd6ff6b7df1af0e6 /source3/modules/vfs_glusterfs.c | |
parent | 0da76414fdc6a0aacea6282a76b384a702615408 (diff) | |
download | samba-fc92d451cf3162807e2493c62fa7617863adf2ba.tar.gz |
s3: VFS: Change SMB_VFS_LINK 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.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/modules/vfs_glusterfs.c b/source3/modules/vfs_glusterfs.c index 3d28381eaf4..870983ea8fc 100644 --- a/source3/modules/vfs_glusterfs.c +++ b/source3/modules/vfs_glusterfs.c @@ -1246,9 +1246,12 @@ static int vfs_gluster_readlink(struct vfs_handle_struct *handle, } static int vfs_gluster_link(struct vfs_handle_struct *handle, - const char *oldpath, const char *newpath) + const struct smb_filename *old_smb_fname, + const struct smb_filename *new_smb_fname) { - return glfs_link(handle->data, oldpath, newpath); + return glfs_link(handle->data, + old_smb_fname->base_name, + new_smb_fname->base_name); } static int vfs_gluster_mknod(struct vfs_handle_struct *handle, |