diff options
author | Jeremy Allison <jra@samba.org> | 2017-06-30 11:32:59 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2017-07-01 03:07:11 +0200 |
commit | c29438f8238c3cf436e126c99f6f9f6bcca4efaf (patch) | |
tree | cff5f451fe83b9189eca4ca8f2c9530a8bfc2fa9 /source3/include/vfs.h | |
parent | bd9285b19741128bae501b721d9e63dd9a9bd833 (diff) | |
download | samba-c29438f8238c3cf436e126c99f6f9f6bcca4efaf.tar.gz |
s3: VFS: Change SMB_VFS_REALPATH to take and return struct smb_filename * instead of 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/include/vfs.h')
-rw-r--r-- | source3/include/vfs.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source3/include/vfs.h b/source3/include/vfs.h index 716e194a4ee..1aa44ee14e1 100644 --- a/source3/include/vfs.h +++ b/source3/include/vfs.h @@ -234,6 +234,8 @@ to const struct smb_filename * */ /* Version 37 - Change conn->cwd from char * to struct smb_filename * */ +/* Version 37 - Change realpath from char * + to struct smb_filename * */ #define SMB_VFS_INTERFACE_VERSION 37 @@ -769,7 +771,9 @@ struct vfs_fn_pointers { const struct smb_filename *smb_fname, mode_t mode, SMB_DEV_T dev); - char *(*realpath_fn)(struct vfs_handle_struct *handle, const char *path); + struct smb_filename *(*realpath_fn)(struct vfs_handle_struct *handle, + TALLOC_CTX *ctx, + const struct smb_filename *smb_fname); int (*chflags_fn)(struct vfs_handle_struct *handle, const struct smb_filename *smb_fname, unsigned int flags); @@ -1279,7 +1283,9 @@ int smb_vfs_call_mknod(struct vfs_handle_struct *handle, const struct smb_filename *smb_fname, mode_t mode, SMB_DEV_T dev); -char *smb_vfs_call_realpath(struct vfs_handle_struct *handle, const char *path); +struct smb_filename *smb_vfs_call_realpath(struct vfs_handle_struct *handle, + TALLOC_CTX *ctx, + const struct smb_filename *smb_fname); int smb_vfs_call_chflags(struct vfs_handle_struct *handle, const struct smb_filename *smb_fname, unsigned int flags); |