From: Jeremy Allison Date: Wed, 18 Sep 2019 16:59:54 +0000 (-0700) Subject: s3: VFS: vfs_ceph: Remove unlink_fn. No longer used. X-Git-Tag: talloc-2.3.1~575 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=467251ccf97561e9717d62080c0e81bfd2a1e11f;p=thirdparty%2Fsamba.git s3: VFS: vfs_ceph: Remove unlink_fn. No longer used. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_ceph.c b/source3/modules/vfs_ceph.c index 16ba3365b19..6c21005125e 100644 --- a/source3/modules/vfs_ceph.c +++ b/source3/modules/vfs_ceph.c @@ -937,21 +937,6 @@ static int cephwrap_ntimes(struct vfs_handle_struct *handle, } #endif /* HAVE_CEPH_STATX */ -static int cephwrap_unlink(struct vfs_handle_struct *handle, - const struct smb_filename *smb_fname) -{ - int result = -1; - - DBG_DEBUG("[CEPH] unlink(%p, %s)\n", handle, smb_fname_str_dbg(smb_fname)); - if (smb_fname->stream_name) { - errno = ENOENT; - return result; - } - result = ceph_unlink(handle->data, smb_fname->base_name); - DBG_DEBUG("[CEPH] unlink(...) = %d\n", result); - WRAP_RETURN(result); -} - static int cephwrap_unlinkat(struct vfs_handle_struct *handle, struct files_struct *dirfsp, const struct smb_filename *smb_fname, @@ -1479,7 +1464,6 @@ static struct vfs_fn_pointers ceph_fns = { .stat_fn = cephwrap_stat, .fstat_fn = cephwrap_fstat, .lstat_fn = cephwrap_lstat, - .unlink_fn = cephwrap_unlink, .unlinkat_fn = cephwrap_unlinkat, .chmod_fn = cephwrap_chmod, .fchmod_fn = cephwrap_fchmod,