From: Jeremy Allison Date: Fri, 16 Aug 2019 23:28:16 +0000 (-0700) Subject: s3: VFS: vfs_unityed_media. Remove link_fn(). No longer used. X-Git-Tag: tevent-0.10.1~287 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d31d52f16d1554c6fb2f9426a39461206d8eb53d;p=thirdparty%2Fsamba.git s3: VFS: vfs_unityed_media. Remove link_fn(). No longer used. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Böhme --- diff --git a/source3/modules/vfs_unityed_media.c b/source3/modules/vfs_unityed_media.c index cdda1a7adc3..db1c1e6dcb8 100644 --- a/source3/modules/vfs_unityed_media.c +++ b/source3/modules/vfs_unityed_media.c @@ -1393,39 +1393,6 @@ err: return status; } -static int um_link(vfs_handle_struct *handle, - const struct smb_filename *old_smb_fname, - const struct smb_filename *new_smb_fname) -{ - int status; - struct smb_filename *old_client_fname = NULL; - struct smb_filename *new_client_fname = NULL; - - DEBUG(10, ("Entering um_link\n")); - if (!is_in_media_files(old_smb_fname->base_name) && - !is_in_media_files(new_smb_fname->base_name)) { - return SMB_VFS_NEXT_LINK(handle, old_smb_fname, new_smb_fname); - } - - status = alloc_get_client_smb_fname(handle, talloc_tos(), - old_smb_fname, &old_client_fname); - if (status != 0) { - goto err; - } - status = alloc_get_client_smb_fname(handle, talloc_tos(), - new_smb_fname, &new_client_fname); - if (status != 0) { - goto err; - } - - status = SMB_VFS_NEXT_LINK(handle, old_client_fname, new_client_fname); - -err: - TALLOC_FREE(old_client_fname); - TALLOC_FREE(new_client_fname); - return status; -} - static int um_linkat(vfs_handle_struct *handle, files_struct *srcfsp, const struct smb_filename *old_smb_fname, @@ -1949,7 +1916,6 @@ static struct vfs_fn_pointers vfs_um_fns = { .ntimes_fn = um_ntimes, .symlink_fn = um_symlink, .readlink_fn = um_readlink, - .link_fn = um_link, .linkat_fn = um_linkat, .mknod_fn = um_mknod, .realpath_fn = um_realpath,