From c5ea3d045af491549346890929ac3dbbce952aeb Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 30 Aug 2019 14:45:13 -0700 Subject: s3: VFS: Complete the replacement of SMB_VFS_SYMLINK() -> SMB_VFS_SYMLINKAT(). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jeremy Allison Reviewed-by: Ralph Böhme Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Tue Sep 3 22:32:30 UTC 2019 on sn-devel-184 --- examples/VFS/skel_opaque.c | 9 --------- examples/VFS/skel_transparent.c | 8 -------- 2 files changed, 17 deletions(-) (limited to 'examples') diff --git a/examples/VFS/skel_opaque.c b/examples/VFS/skel_opaque.c index 96661857b4c..5a18268e6f4 100644 --- a/examples/VFS/skel_opaque.c +++ b/examples/VFS/skel_opaque.c @@ -456,14 +456,6 @@ static bool skel_getlock(vfs_handle_struct *handle, files_struct *fsp, return false; } -static int skel_symlink(vfs_handle_struct *handle, - const char *link_contents, - const struct smb_filename *new_smb_fname) -{ - errno = ENOSYS; - return -1; -} - static int skel_symlinkat(vfs_handle_struct *handle, const char *link_contents, struct files_struct *dirfsp, @@ -1098,7 +1090,6 @@ static struct vfs_fn_pointers skel_opaque_fns = { .kernel_flock_fn = skel_kernel_flock, .linux_setlease_fn = skel_linux_setlease, .getlock_fn = skel_getlock, - .symlink_fn = skel_symlink, .symlinkat_fn = skel_symlinkat, .readlinkat_fn = skel_vfs_readlinkat, .linkat_fn = skel_linkat, diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c index 493c18a5417..654c0e6ca85 100644 --- a/examples/VFS/skel_transparent.c +++ b/examples/VFS/skel_transparent.c @@ -556,13 +556,6 @@ static bool skel_getlock(vfs_handle_struct *handle, files_struct *fsp, return SMB_VFS_NEXT_GETLOCK(handle, fsp, poffset, pcount, ptype, ppid); } -static int skel_symlink(vfs_handle_struct *handle, - const char *link_contents, - const struct smb_filename *new_smb_fname) -{ - return SMB_VFS_NEXT_SYMLINK(handle, link_contents, new_smb_fname); -} - static int skel_symlinkat(vfs_handle_struct *handle, const char *link_contents, struct files_struct *dirfsp, @@ -1379,7 +1372,6 @@ static struct vfs_fn_pointers skel_transparent_fns = { .kernel_flock_fn = skel_kernel_flock, .linux_setlease_fn = skel_linux_setlease, .getlock_fn = skel_getlock, - .symlink_fn = skel_symlink, .symlinkat_fn = skel_symlinkat, .readlinkat_fn = skel_vfs_readlinkat, .linkat_fn = skel_linkat, -- cgit v1.2.1