summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2019-10-10 14:23:15 -0700
committerJeremy Allison <jra@samba.org>2019-10-15 18:46:37 +0000
commit3f8f797975931854e485fbf649b75897f0d6f775 (patch)
tree2c2e0ac238eb44164bc39406878251f7d7b82189 /source3/modules
parent95a6505e1bcbe89d0d39286668b04b948b1bed4f (diff)
downloadsamba-3f8f797975931854e485fbf649b75897f0d6f775.tar.gz
s3: VFS: vfs_ceph_snapshots: Remove chown_fn().
No longer used. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org>
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/vfs_ceph_snapshots.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/source3/modules/vfs_ceph_snapshots.c b/source3/modules/vfs_ceph_snapshots.c
index 680716fcf98..ce364ae83dc 100644
--- a/source3/modules/vfs_ceph_snapshots.c
+++ b/source3/modules/vfs_ceph_snapshots.c
@@ -1018,28 +1018,6 @@ static int ceph_snap_gmt_chmod(vfs_handle_struct *handle,
return SMB_VFS_NEXT_CHMOD(handle, csmb_fname, mode);
}
-static int ceph_snap_gmt_chown(vfs_handle_struct *handle,
- const struct smb_filename *csmb_fname,
- uid_t uid,
- gid_t gid)
-{
- time_t timestamp = 0;
- int ret;
-
- ret = ceph_snap_gmt_strip_snapshot(handle,
- csmb_fname->base_name,
- &timestamp, NULL, 0);
- if (ret < 0) {
- errno = -ret;
- return -1;
- }
- if (timestamp != 0) {
- errno = EROFS;
- return -1;
- }
- return SMB_VFS_NEXT_CHOWN(handle, csmb_fname, uid, gid);
-}
-
static int ceph_snap_gmt_chdir(vfs_handle_struct *handle,
const struct smb_filename *csmb_fname)
{
@@ -1623,7 +1601,6 @@ static struct vfs_fn_pointers ceph_snap_fns = {
.open_fn = ceph_snap_gmt_open,
.unlinkat_fn = ceph_snap_gmt_unlinkat,
.chmod_fn = ceph_snap_gmt_chmod,
- .chown_fn = ceph_snap_gmt_chown,
.chdir_fn = ceph_snap_gmt_chdir,
.ntimes_fn = ceph_snap_gmt_ntimes,
.readlinkat_fn = ceph_snap_gmt_readlinkat,