]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: ceph_snapshots: Remove ceph_snap_gmt_removexattr(). No longer called.
authorJeremy Allison <jra@samba.org>
Mon, 22 Mar 2021 18:20:07 +0000 (11:20 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 7 Apr 2021 16:26:28 +0000 (16:26 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_ceph_snapshots.c

index 3211c1c7dce6ce06008fda757956a48dd1209874..7b2307b19ee07db36d2117c8bad81132fa1a788d 100644 (file)
@@ -1298,27 +1298,6 @@ static ssize_t ceph_snap_gmt_getxattr(vfs_handle_struct *handle,
        return ret;
 }
 
-static int ceph_snap_gmt_removexattr(vfs_handle_struct *handle,
-                               const struct smb_filename *csmb_fname,
-                               const char *aname)
-{
-       time_t timestamp = 0;
-       int ret;
-
-       ret = ceph_snap_gmt_strip_snapshot(handle,
-                                       csmb_fname,
-                                       &timestamp, NULL, 0);
-       if (ret < 0) {
-               errno = -ret;
-               return -1;
-       }
-       if (timestamp != 0) {
-               errno = EROFS;
-               return -1;
-       }
-       return SMB_VFS_NEXT_REMOVEXATTR(handle, csmb_fname, aname);
-}
-
 static int ceph_snap_gmt_fsetxattr(struct vfs_handle_struct *handle,
                                struct files_struct *fsp,
                                const char *aname, const void *value,
@@ -1492,7 +1471,6 @@ static struct vfs_fn_pointers ceph_snap_fns = {
        .getxattr_fn = ceph_snap_gmt_getxattr,
        .getxattrat_send_fn = vfs_not_implemented_getxattrat_send,
        .getxattrat_recv_fn = vfs_not_implemented_getxattrat_recv,
-       .removexattr_fn = ceph_snap_gmt_removexattr,
        .fsetxattr_fn = ceph_snap_gmt_fsetxattr,
        .chflags_fn = ceph_snap_gmt_chflags,
        .get_real_filename_fn = ceph_snap_gmt_get_real_filename,