From: Jeremy Allison Date: Fri, 9 Aug 2019 23:12:25 +0000 (-0700) Subject: s3: VFS: vfs_syncops. Remove rename_fn(). No longer used. X-Git-Tag: tdb-1.4.2~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33a243b7a2cf0bbcfde5a52dd70cef670164027c;p=thirdparty%2Fsamba.git s3: VFS: vfs_syncops. Remove rename_fn(). No longer used. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_syncops.c b/source3/modules/vfs_syncops.c index 6d5144eecaa..5764342c267 100644 --- a/source3/modules/vfs_syncops.c +++ b/source3/modules/vfs_syncops.c @@ -125,28 +125,8 @@ static void syncops_smb_fname(const struct smb_filename *smb_fname) /* - rename needs special handling, as we may need to fsync two directories + renameat needs special handling, as we may need to fsync two directories */ -static int syncops_rename(vfs_handle_struct *handle, - const struct smb_filename *smb_fname_src, - const struct smb_filename *smb_fname_dst) -{ - - int ret; - struct syncops_config_data *config; - - SMB_VFS_HANDLE_GET_DATA(handle, config, - struct syncops_config_data, - return -1); - - ret = SMB_VFS_NEXT_RENAME(handle, smb_fname_src, smb_fname_dst); - if (ret == 0 && config->onmeta && !config->disable) { - syncops_two_names(smb_fname_src->base_name, - smb_fname_dst->base_name); - } - return ret; -} - static int syncops_renameat(vfs_handle_struct *handle, files_struct *srcfsp, const struct smb_filename *smb_fname_src, @@ -316,7 +296,6 @@ static struct vfs_fn_pointers vfs_syncops_fns = { .mkdir_fn = syncops_mkdir, .rmdir_fn = syncops_rmdir, .open_fn = syncops_open, - .rename_fn = syncops_rename, .renameat_fn = syncops_renameat, .unlink_fn = syncops_unlink, .symlink_fn = syncops_symlink,