From 25c53f1499750934f6c82ddd2fce4a34e48eff5e Mon Sep 17 00:00:00 2001 From: Noel Power Date: Thu, 8 Apr 2021 12:42:01 +0100 Subject: [PATCH] s3/modules: VFS: ceph: Remove cephwrap_chmod() function Signed-off-by: Noel Power Reviewed-by: Ralph Boehme --- source3/modules/vfs_ceph.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/source3/modules/vfs_ceph.c b/source3/modules/vfs_ceph.c index 8e6bab0fea7..d627a2233ae 100644 --- a/source3/modules/vfs_ceph.c +++ b/source3/modules/vfs_ceph.c @@ -858,18 +858,6 @@ static int cephwrap_unlinkat(struct vfs_handle_struct *handle, WRAP_RETURN(result); } -static int cephwrap_chmod(struct vfs_handle_struct *handle, - const struct smb_filename *smb_fname, - mode_t mode) -{ - int result; - - DBG_DEBUG("[CEPH] chmod(%p, %s, %d)\n", handle, smb_fname->base_name, mode); - result = ceph_chmod(handle->data, smb_fname->base_name, mode); - DBG_DEBUG("[CEPH] chmod(...) = %d\n", result); - WRAP_RETURN(result); -} - static int cephwrap_fchmod(struct vfs_handle_struct *handle, files_struct *fsp, mode_t mode) { int result; @@ -1588,7 +1576,6 @@ static struct vfs_fn_pointers ceph_fns = { .fstat_fn = cephwrap_fstat, .lstat_fn = cephwrap_lstat, .unlinkat_fn = cephwrap_unlinkat, - .chmod_fn = cephwrap_chmod, .fchmod_fn = cephwrap_fchmod, .fchown_fn = cephwrap_fchown, .lchown_fn = cephwrap_lchown, -- 2.47.3