]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/modules: VFS: ceph: Remove cephwrap_chmod() function
authorNoel Power <noel.power@suse.com>
Thu, 8 Apr 2021 11:42:01 +0000 (12:42 +0100)
committerNoel Power <npower@samba.org>
Sun, 11 Apr 2021 22:27:34 +0000 (22:27 +0000)
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_ceph.c

index 8e6bab0fea70e9e31fbf491431c28a45e1532b65..d627a2233aee14b9efe56c9381da1404616725e7 100644 (file)
@@ -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,