]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: vfs_syncops. Remove link_fn(). No longer used.
authorJeremy Allison <jra@samba.org>
Fri, 16 Aug 2019 23:27:25 +0000 (16:27 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 20 Aug 2019 21:09:29 +0000 (21:09 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
source3/modules/vfs_syncops.c

index 873b71f934c483f4d18b8a65e5eb6b9e5c75e155..27798d02adc59f578b283495b8fe7bf3962d3bf5 100644 (file)
@@ -185,25 +185,6 @@ static int syncops_symlink(vfs_handle_struct *handle,
        return ret;
 }
 
-static int syncops_link(vfs_handle_struct *handle,
-                       const struct smb_filename *old_smb_fname,
-                       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_LINK(handle, old_smb_fname, new_smb_fname);
-       if (ret == 0 && config->onmeta && !config->disable) {
-               syncops_two_names(old_smb_fname->base_name,
-                                 new_smb_fname->base_name);
-       }
-       return ret;
-}
-
 static int syncops_linkat(vfs_handle_struct *handle,
                        files_struct *srcfsp,
                        const struct smb_filename *old_smb_fname,
@@ -331,7 +312,6 @@ static struct vfs_fn_pointers vfs_syncops_fns = {
        .renameat_fn = syncops_renameat,
        .unlink_fn = syncops_unlink,
        .symlink_fn = syncops_symlink,
-       .link_fn = syncops_link,
        .linkat_fn = syncops_linkat,
        .mknod_fn = syncops_mknod,
        .close_fn = syncops_close,