From 3e8f319606b898b803c1368154c87ee41dc2c78b Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 10 Oct 2019 14:25:31 -0700 Subject: [PATCH] s3: VFS: vfs_glusterfs: Remove chown_fn(). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit No longer used. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Böhme --- source3/modules/vfs_glusterfs.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/source3/modules/vfs_glusterfs.c b/source3/modules/vfs_glusterfs.c index 3e28fcd143f..6d087c0b4d4 100644 --- a/source3/modules/vfs_glusterfs.c +++ b/source3/modules/vfs_glusterfs.c @@ -1322,20 +1322,6 @@ static int vfs_gluster_fchmod(struct vfs_handle_struct *handle, return ret; } -static int vfs_gluster_chown(struct vfs_handle_struct *handle, - const struct smb_filename *smb_fname, - uid_t uid, - gid_t gid) -{ - int ret; - - START_PROFILE(syscall_chown); - ret = glfs_chown(handle->data, smb_fname->base_name, uid, gid); - END_PROFILE(syscall_chown); - - return ret; -} - static int vfs_gluster_fchown(struct vfs_handle_struct *handle, files_struct *fsp, uid_t uid, gid_t gid) { @@ -1918,7 +1904,6 @@ static struct vfs_fn_pointers glusterfs_fns = { .chmod_fn = vfs_gluster_chmod, .fchmod_fn = vfs_gluster_fchmod, - .chown_fn = vfs_gluster_chown, .fchown_fn = vfs_gluster_fchown, .lchown_fn = vfs_gluster_lchown, .chdir_fn = vfs_gluster_chdir, -- 2.47.3