From: Jeremy Allison Date: Fri, 16 Aug 2019 23:24:53 +0000 (-0700) Subject: s3: VFS: vfs_media_harmony. Remove link_fn(). No longer used. X-Git-Tag: tevent-0.10.1~291 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38da902351b933bb6bb99e724e2f49987a8770d8;p=thirdparty%2Fsamba.git s3: VFS: vfs_media_harmony. Remove link_fn(). No longer used. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Böhme --- diff --git a/source3/modules/vfs_media_harmony.c b/source3/modules/vfs_media_harmony.c index 10f5f6ca907..d6a8de2d2cc 100644 --- a/source3/modules/vfs_media_harmony.c +++ b/source3/modules/vfs_media_harmony.c @@ -1781,46 +1781,6 @@ out: return status; } -/* - * Success: return 0 - * Failure: set errno, return -1 - */ -static int mh_link(vfs_handle_struct *handle, - const struct smb_filename *old_smb_fname, - const struct smb_filename *new_smb_fname) -{ - int status; - struct smb_filename *oldclientFname = NULL; - struct smb_filename *newclientFname = NULL; - - DEBUG(MH_INFO_DEBUG, ("Entering mh_link\n")); - if (!is_in_media_files(old_smb_fname->base_name) && - !is_in_media_files(new_smb_fname->base_name)) { - status = SMB_VFS_NEXT_LINK(handle, - old_smb_fname, - new_smb_fname); - goto out; - } - - if ((status = alloc_get_client_smb_fname(handle, talloc_tos(), - old_smb_fname, - &oldclientFname))) { - goto err; - } - if ((status = alloc_get_client_smb_fname(handle, talloc_tos(), - new_smb_fname, - &newclientFname))) { - goto err; - } - - status = SMB_VFS_NEXT_LINK(handle, oldclientFname, newclientFname); -err: - TALLOC_FREE(newclientFname); - TALLOC_FREE(oldclientFname); -out: - return status; -} - /* * Success: return 0 * Failure: set errno, return -1 @@ -2353,7 +2313,6 @@ static struct vfs_fn_pointers vfs_mh_fns = { .ntimes_fn = mh_ntimes, .symlink_fn = mh_symlink, .readlink_fn = mh_readlink, - .link_fn = mh_link, .linkat_fn = mh_linkat, .mknod_fn = mh_mknod, .realpath_fn = mh_realpath,