]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: vfs_ceph: Remove chown_fn().
authorJeremy Allison <jra@samba.org>
Thu, 10 Oct 2019 21:22:35 +0000 (14:22 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 15 Oct 2019 18:46:37 +0000 (18:46 +0000)
No longer used.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
source3/modules/vfs_ceph.c

index 6295d032d1071d0151a572faac63a110fa6ef687..8864b42400849e4297a3ffdb985180c881d99458 100644 (file)
@@ -972,18 +972,6 @@ static int cephwrap_fchmod(struct vfs_handle_struct *handle, files_struct *fsp,
        WRAP_RETURN(result);
 }
 
-static int cephwrap_chown(struct vfs_handle_struct *handle,
-                       const struct smb_filename *smb_fname,
-                       uid_t uid,
-                       gid_t gid)
-{
-       int result;
-       DBG_DEBUG("[CEPH] chown(%p, %s, %d, %d)\n", handle, smb_fname->base_name, uid, gid);
-       result = ceph_chown(handle->data, smb_fname->base_name, uid, gid);
-       DBG_DEBUG("[CEPH] chown(...) = %d\n", result);
-       WRAP_RETURN(result);
-}
-
 static int cephwrap_fchown(struct vfs_handle_struct *handle, files_struct *fsp, uid_t uid, gid_t gid)
 {
        int result;
@@ -1455,7 +1443,6 @@ static struct vfs_fn_pointers ceph_fns = {
        .unlinkat_fn = cephwrap_unlinkat,
        .chmod_fn = cephwrap_chmod,
        .fchmod_fn = cephwrap_fchmod,
-       .chown_fn = cephwrap_chown,
        .fchown_fn = cephwrap_fchown,
        .lchown_fn = cephwrap_lchown,
        .chdir_fn = cephwrap_chdir,