diff options
author | Jeremy Allison <jra@samba.org> | 2017-05-23 13:12:29 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2017-05-31 22:50:22 +0200 |
commit | 892476b555f57bcbe40883c533e208c81be168c9 (patch) | |
tree | 342b656522a311574e153179e0a236032f2b6143 /examples/VFS | |
parent | aada94885dce29334e34c9aae32c22e7acfc1174 (diff) | |
download | samba-892476b555f57bcbe40883c533e208c81be168c9.tar.gz |
s3: VFS: Change SMB_VFS_LISTXATTR 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: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'examples/VFS')
-rw-r--r-- | examples/VFS/skel_opaque.c | 6 | ||||
-rw-r--r-- | examples/VFS/skel_transparent.c | 8 |
2 files changed, 9 insertions, 5 deletions
diff --git a/examples/VFS/skel_opaque.c b/examples/VFS/skel_opaque.c index e7158203c50..981bfbffe33 100644 --- a/examples/VFS/skel_opaque.c +++ b/examples/VFS/skel_opaque.c @@ -812,8 +812,10 @@ static ssize_t skel_fgetxattr(vfs_handle_struct *handle, return -1; } -static ssize_t skel_listxattr(vfs_handle_struct *handle, const char *path, - char *list, size_t size) +static ssize_t skel_listxattr(vfs_handle_struct *handle, + const struct smb_filename *smb_fname, + char *list, + size_t size) { errno = ENOSYS; return -1; diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c index 05d67234845..ec7a9f1aee0 100644 --- a/examples/VFS/skel_transparent.c +++ b/examples/VFS/skel_transparent.c @@ -946,10 +946,12 @@ static ssize_t skel_fgetxattr(vfs_handle_struct *handle, return SMB_VFS_NEXT_FGETXATTR(handle, fsp, name, value, size); } -static ssize_t skel_listxattr(vfs_handle_struct *handle, const char *path, - char *list, size_t size) +static ssize_t skel_listxattr(vfs_handle_struct *handle, + const struct smb_filename *smb_fname, + char *list, + size_t size) { - return SMB_VFS_NEXT_LISTXATTR(handle, path, list, size); + return SMB_VFS_NEXT_LISTXATTR(handle, smb_fname, list, size); } static ssize_t skel_flistxattr(vfs_handle_struct *handle, |