]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/modules: VFS: Remove vfs_gluster_chmod() function
authorNoel Power <noel.power@suse.com>
Thu, 8 Apr 2021 11:50:53 +0000 (12:50 +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_glusterfs.c

index ef52f83f9bcd32f665dc98c453c758f8623a79de..d0fe5b8931f8539217d37bf98b3a67ac072bed92 100644 (file)
@@ -1458,19 +1458,6 @@ static int vfs_gluster_unlinkat(struct vfs_handle_struct *handle,
        return ret;
 }
 
-static int vfs_gluster_chmod(struct vfs_handle_struct *handle,
-                               const struct smb_filename *smb_fname,
-                               mode_t mode)
-{
-       int ret;
-
-       START_PROFILE(syscall_chmod);
-       ret = glfs_chmod(handle->data, smb_fname->base_name, mode);
-       END_PROFILE(syscall_chmod);
-
-       return ret;
-}
-
 static int vfs_gluster_fchmod(struct vfs_handle_struct *handle,
                              files_struct *fsp, mode_t mode)
 {
@@ -2336,7 +2323,6 @@ static struct vfs_fn_pointers glusterfs_fns = {
        .get_alloc_size_fn = vfs_gluster_get_alloc_size,
        .unlinkat_fn = vfs_gluster_unlinkat,
 
-       .chmod_fn = vfs_gluster_chmod,
        .fchmod_fn = vfs_gluster_fchmod,
        .fchown_fn = vfs_gluster_fchown,
        .lchown_fn = vfs_gluster_lchown,