1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

vfs: make dirfsp arg to SMB_VFS_READLINKAT() const

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Ralph Boehme 2020-10-13 15:19:30 +02:00
parent 54b4d2d3cb
commit c4cbe0610c
17 changed files with 20 additions and 19 deletions

View File

@ -474,7 +474,7 @@ static int skel_symlinkat(vfs_handle_struct *handle,
}
static int skel_vfs_readlinkat(vfs_handle_struct *handle,
files_struct *dirfsp,
const struct files_struct *dirfsp,
const struct smb_filename *smb_fname,
char *buf,
size_t bufsiz)

View File

@ -600,7 +600,7 @@ static int skel_symlinkat(vfs_handle_struct *handle,
}
static int skel_vfs_readlinkat(vfs_handle_struct *handle,
files_struct *dirfsp,
const struct files_struct *dirfsp,
const struct smb_filename *smb_fname,
char *buf,
size_t bufsiz)

View File

@ -330,6 +330,7 @@
* Change to Version 44 - will ship with 4.14.
* Version 44 - Remove dirfsp arg from struct files_struct
* Version 44 - Remove dirfsp arg to SMB_VFS_CREATE_FILE()
* Version 44 - Make dirfsp arg to SMB_VFS_READLINKAT() const
*/
#define SMB_VFS_INTERFACE_VERSION 44
@ -863,7 +864,7 @@ struct vfs_fn_pointers {
struct files_struct *dirfsp,
const struct smb_filename *new_smb_fname);
int (*readlinkat_fn)(struct vfs_handle_struct *handle,
struct files_struct *dirfsp,
const struct files_struct *dirfsp,
const struct smb_filename *smb_fname,
char *buf,
size_t bufsiz);
@ -1407,7 +1408,7 @@ int smb_vfs_call_symlinkat(struct vfs_handle_struct *handle,
struct files_struct *dirfsp,
const struct smb_filename *new_smb_fname);
int smb_vfs_call_readlinkat(struct vfs_handle_struct *handle,
struct files_struct *dirfsp,
const struct files_struct *dirfsp,
const struct smb_filename *smb_fname,
char *buf,
size_t bufsiz);
@ -1853,7 +1854,7 @@ int vfs_not_implemented_symlinkat(vfs_handle_struct *handle,
struct files_struct *dirfsp,
const struct smb_filename *new_smb_fname);
int vfs_not_implemented_vfs_readlinkat(vfs_handle_struct *handle,
struct files_struct *dirfsp,
const struct files_struct *dirfsp,
const struct smb_filename *smb_fname,
char *buf,
size_t bufsiz);

View File

@ -519,7 +519,7 @@ static int cap_symlinkat(vfs_handle_struct *handle,
}
static int cap_readlinkat(vfs_handle_struct *handle,
files_struct *dirfsp,
const struct files_struct *dirfsp,
const struct smb_filename *smb_fname,
char *buf,
size_t bufsiz)

View File

@ -1051,7 +1051,7 @@ static int cephwrap_symlinkat(struct vfs_handle_struct *handle,
}
static int cephwrap_readlinkat(struct vfs_handle_struct *handle,
files_struct *dirfsp,
const struct files_struct *dirfsp,
const struct smb_filename *smb_fname,
char *buf,
size_t bufsiz)

View File

@ -1023,7 +1023,7 @@ static int ceph_snap_gmt_ntimes(vfs_handle_struct *handle,
}
static int ceph_snap_gmt_readlinkat(vfs_handle_struct *handle,
files_struct *dirfsp,
const struct files_struct *dirfsp,
const struct smb_filename *csmb_fname,
char *buf,
size_t bufsiz)

View File

@ -2883,7 +2883,7 @@ static int vfswrap_symlinkat(vfs_handle_struct *handle,
}
static int vfswrap_readlinkat(vfs_handle_struct *handle,
files_struct *dirfsp,
const struct files_struct *dirfsp,
const struct smb_filename *smb_fname,
char *buf,
size_t bufsiz)

View File

@ -183,7 +183,7 @@ static char *expand_msdfs_target(TALLOC_CTX *ctx,
}
static int expand_msdfs_readlinkat(struct vfs_handle_struct *handle,
files_struct *dirfsp,
const struct files_struct *dirfsp,
const struct smb_filename *smb_fname,
char *buf,
size_t bufsiz)

View File

@ -1813,7 +1813,7 @@ static int smb_full_audit_symlinkat(vfs_handle_struct *handle,
}
static int smb_full_audit_readlinkat(vfs_handle_struct *handle,
files_struct *dirfsp,
const struct files_struct *dirfsp,
const struct smb_filename *smb_fname,
char *buf,
size_t bufsiz)

View File

@ -1703,7 +1703,7 @@ static int vfs_gluster_symlinkat(struct vfs_handle_struct *handle,
}
static int vfs_gluster_readlinkat(struct vfs_handle_struct *handle,
files_struct *dirfsp,
const struct files_struct *dirfsp,
const struct smb_filename *smb_fname,
char *buf,
size_t bufsiz)

View File

@ -1643,7 +1643,7 @@ out:
* Failure: set errno, return -1
*/
static int mh_readlinkat(vfs_handle_struct *handle,
files_struct *dirfsp,
const struct files_struct *dirfsp,
const struct smb_filename *smb_fname,
char *buf,
size_t bufsiz)

View File

@ -472,7 +472,7 @@ int vfs_not_implemented_symlinkat(vfs_handle_struct *handle,
}
int vfs_not_implemented_vfs_readlinkat(vfs_handle_struct *handle,
files_struct *dirfsp,
const struct files_struct *dirfsp,
const struct smb_filename *smb_fname,
char *buf,
size_t bufsiz)

View File

@ -1568,7 +1568,7 @@ static int shadow_copy2_ntimes(vfs_handle_struct *handle,
}
static int shadow_copy2_readlinkat(vfs_handle_struct *handle,
files_struct *dirfsp,
const struct files_struct *dirfsp,
const struct smb_filename *smb_fname,
char *buf,
size_t bufsiz)

View File

@ -2237,7 +2237,7 @@ static int snapper_gmt_ntimes(vfs_handle_struct *handle,
}
static int snapper_gmt_readlinkat(vfs_handle_struct *handle,
files_struct *dirfsp,
const struct files_struct *dirfsp,
const struct smb_filename *smb_fname,
char *buf,
size_t bufsiz)

View File

@ -1433,7 +1433,7 @@ static int smb_time_audit_symlinkat(vfs_handle_struct *handle,
}
static int smb_time_audit_readlinkat(vfs_handle_struct *handle,
files_struct *dirfsp,
const struct files_struct *dirfsp,
const struct smb_filename *smb_fname,
char *buf,
size_t bufsiz)

View File

@ -1284,7 +1284,7 @@ err:
}
static int um_readlinkat(vfs_handle_struct *handle,
files_struct *dirfsp,
const struct files_struct *dirfsp,
const struct smb_filename *smb_fname,
char *buf,
size_t bufsiz)

View File

@ -2290,7 +2290,7 @@ int smb_vfs_call_symlinkat(struct vfs_handle_struct *handle,
}
int smb_vfs_call_readlinkat(struct vfs_handle_struct *handle,
files_struct *dirfsp,
const struct files_struct *dirfsp,
const struct smb_filename *smb_fname,
char *buf,
size_t bufsiz)