s3: VFS: vfs_syncops. Remove symlink_fn(). No longer used.
authorJeremy Allison <jra@samba.org>
Fri, 30 Aug 2019 21:36:10 +0000 (14:36 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 3 Sep 2019 21:15:44 +0000 (21:15 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
source3/modules/vfs_syncops.c

index e8169bac1a94fdbed09699c7599674ba0572be09..08257e53654e77ef3ccafb373a348158fea93ba3 100644 (file)
@@ -166,25 +166,6 @@ static int syncops_renameat(vfs_handle_struct *handle,
        return ret; \
 } while (0)
 
-static int syncops_symlink(vfs_handle_struct *handle,
-                       const char *link_contents,
-                       const struct smb_filename *new_smb_fname)
-{
-       int ret;
-       struct syncops_config_data *config;
-
-       SMB_VFS_HANDLE_GET_DATA(handle, config,
-                               struct syncops_config_data,
-                               return -1);
-
-       ret = SMB_VFS_NEXT_SYMLINK(handle, link_contents, new_smb_fname);
-       if (ret == 0 && config->onmeta && !config->disable) {
-               syncops_two_names(link_contents,
-                                 new_smb_fname->base_name);
-       }
-       return ret;
-}
-
 static int syncops_symlinkat(vfs_handle_struct *handle,
                        const char *link_contents,
                        struct files_struct *dirfsp,
@@ -341,7 +322,6 @@ static struct vfs_fn_pointers vfs_syncops_fns = {
        .open_fn = syncops_open,
        .renameat_fn = syncops_renameat,
        .unlink_fn = syncops_unlink,
-       .symlink_fn = syncops_symlink,
        .symlinkat_fn = syncops_symlinkat,
        .linkat_fn = syncops_linkat,
        .mknodat_fn = syncops_mknodat,