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 /examples | |
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 'examples')
-rw-r--r-- | examples/VFS/skel_opaque.c | 5 | ||||
-rw-r--r-- | examples/VFS/skel_transparent.c | 7 |
2 files changed, 7 insertions, 5 deletions
diff --git a/examples/VFS/skel_opaque.c b/examples/VFS/skel_opaque.c index 7dd258f1528..371caef4818 100644 --- a/examples/VFS/skel_opaque.c +++ b/examples/VFS/skel_opaque.c @@ -489,8 +489,9 @@ static int skel_vfs_readlink(vfs_handle_struct *handle, const char *path, return -1; } -static int skel_link(vfs_handle_struct *handle, const char *oldpath, - const char *newpath) +static int skel_link(vfs_handle_struct *handle, + const struct smb_filename *old_smb_fname, + const struct smb_filename *new_smb_fname) { errno = ENOSYS; return -1; diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c index 5e66be49d42..bcd4a44e51d 100644 --- a/examples/VFS/skel_transparent.c +++ b/examples/VFS/skel_transparent.c @@ -581,10 +581,11 @@ static int skel_vfs_readlink(vfs_handle_struct *handle, const char *path, return SMB_VFS_NEXT_READLINK(handle, path, buf, bufsiz); } -static int skel_link(vfs_handle_struct *handle, const char *oldpath, - const char *newpath) +static int skel_link(vfs_handle_struct *handle, + const struct smb_filename *old_smb_fname, + const struct smb_filename *new_smb_fname) { - return SMB_VFS_NEXT_LINK(handle, oldpath, newpath); + return SMB_VFS_NEXT_LINK(handle, old_smb_fname, new_smb_fname); } static int skel_mknod(vfs_handle_struct *handle, |