diff options
author | Jeremy Allison <jra@samba.org> | 2017-05-19 16:15:55 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2017-06-18 02:49:24 +0200 |
commit | 730de8e091879a53493a0c96b542603cd52174a2 (patch) | |
tree | b5f84772da7675c5bc86d37d9dd3bc53796e078f /examples | |
parent | c3d45216dd7df2a084b7d1af63f207db0c87b53d (diff) | |
download | samba-730de8e091879a53493a0c96b542603cd52174a2.tar.gz |
s3: VFS: Change SMB_VFS_CHFLAGS 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 | 3 | ||||
-rw-r--r-- | examples/VFS/skel_transparent.c | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/examples/VFS/skel_opaque.c b/examples/VFS/skel_opaque.c index ae0d4dc2b62..aeb1ff37b5f 100644 --- a/examples/VFS/skel_opaque.c +++ b/examples/VFS/skel_opaque.c @@ -507,7 +507,8 @@ static char *skel_realpath(vfs_handle_struct *handle, const char *path) return NULL; } -static int skel_chflags(vfs_handle_struct *handle, const char *path, +static int skel_chflags(vfs_handle_struct *handle, + const struct smb_filename *smb_fname, uint flags) { errno = ENOSYS; diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c index 30f2b4e6f03..f3adae3978f 100644 --- a/examples/VFS/skel_transparent.c +++ b/examples/VFS/skel_transparent.c @@ -596,10 +596,11 @@ static char *skel_realpath(vfs_handle_struct *handle, const char *path) return SMB_VFS_NEXT_REALPATH(handle, path); } -static int skel_chflags(vfs_handle_struct *handle, const char *path, +static int skel_chflags(vfs_handle_struct *handle, + const struct smb_filename *smb_fname, uint flags) { - return SMB_VFS_NEXT_CHFLAGS(handle, path, flags); + return SMB_VFS_NEXT_CHFLAGS(handle, smb_fname, flags); } static struct file_id skel_file_id_create(vfs_handle_struct *handle, |