From 854ea4eba8d552ab38543647da840fd66039dd94 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 25 May 2017 16:42:04 -0700 Subject: s3: VFS: Change SMB_VFS_GETXATTR 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 Reviewed-by: Ralph Boehme Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Thu Jun 1 02:58:53 CEST 2017 on sn-devel-144 --- examples/VFS/skel_opaque.c | 7 +++++-- examples/VFS/skel_transparent.c | 9 ++++++--- 2 files changed, 11 insertions(+), 5 deletions(-) (limited to 'examples') diff --git a/examples/VFS/skel_opaque.c b/examples/VFS/skel_opaque.c index 7095dbeaefb..c5d4359d8b2 100644 --- a/examples/VFS/skel_opaque.c +++ b/examples/VFS/skel_opaque.c @@ -797,8 +797,11 @@ static int skel_sys_acl_delete_def_file(vfs_handle_struct *handle, return -1; } -static ssize_t skel_getxattr(vfs_handle_struct *handle, const char *path, - const char *name, void *value, size_t size) +static ssize_t skel_getxattr(vfs_handle_struct *handle, + const struct smb_filename *smb_fname, + const char *name, + void *value, + size_t size) { errno = ENOSYS; return -1; diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c index 97e61a4bd84..91ea5c6a6a7 100644 --- a/examples/VFS/skel_transparent.c +++ b/examples/VFS/skel_transparent.c @@ -933,10 +933,13 @@ static int skel_sys_acl_delete_def_file(vfs_handle_struct *handle, return SMB_VFS_NEXT_SYS_ACL_DELETE_DEF_FILE(handle, smb_fname); } -static ssize_t skel_getxattr(vfs_handle_struct *handle, const char *path, - const char *name, void *value, size_t size) +static ssize_t skel_getxattr(vfs_handle_struct *handle, + const struct smb_filename *smb_fname, + const char *name, + void *value, + size_t size) { - return SMB_VFS_NEXT_GETXATTR(handle, path, name, value, size); + return SMB_VFS_NEXT_GETXATTR(handle, smb_fname, name, value, size); } static ssize_t skel_fgetxattr(vfs_handle_struct *handle, -- cgit v1.2.1