From: Jeremy Allison Date: Fri, 16 Aug 2019 23:27:25 +0000 (-0700) Subject: s3: VFS: vfs_syncops. Remove link_fn(). No longer used. X-Git-Tag: tevent-0.10.1~288 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=295aa5bd24ac113913e0ec9f22c59c8f56ba3ddc;p=thirdparty%2Fsamba.git s3: VFS: vfs_syncops. Remove link_fn(). No longer used. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Böhme --- diff --git a/source3/modules/vfs_syncops.c b/source3/modules/vfs_syncops.c index 873b71f934c..27798d02adc 100644 --- a/source3/modules/vfs_syncops.c +++ b/source3/modules/vfs_syncops.c @@ -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,