From 467251ccf97561e9717d62080c0e81bfd2a1e11f Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 18 Sep 2019 09:59:54 -0700 Subject: [PATCH] s3: VFS: vfs_ceph: Remove unlink_fn. No longer used. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- source3/modules/vfs_ceph.c | 16 ---------------- 1 file changed, 16 deletions(-) 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, -- 2.47.3