]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: shadow_copy2: Remove shadow_copy2_removexattr(). No longer called.
authorJeremy Allison <jra@samba.org>
Mon, 22 Mar 2021 19:05:02 +0000 (12:05 -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_shadow_copy2.c

index fbeebf026cbef1ae654fe9e64369607c9e2e4c64..5d414f9b09816ca96c72ae9a1a6ca2b1f855d43a 100644 (file)
@@ -2313,26 +2313,6 @@ static ssize_t shadow_copy2_getxattr(vfs_handle_struct *handle,
        return ret;
 }
 
-static int shadow_copy2_removexattr(vfs_handle_struct *handle,
-                               const struct smb_filename *smb_fname,
-                               const char *aname)
-{
-       time_t timestamp = 0;
-
-       if (!shadow_copy2_strip_snapshot(talloc_tos(),
-                               handle,
-                               smb_fname,
-                               &timestamp,
-                               NULL)) {
-               return -1;
-       }
-       if (timestamp != 0) {
-               errno = EROFS;
-               return -1;
-       }
-       return SMB_VFS_NEXT_REMOVEXATTR(handle, smb_fname, aname);
-}
-
 static int shadow_copy2_fsetxattr(struct vfs_handle_struct *handle,
                                 struct files_struct *fsp,
                                 const char *aname, const void *value,
@@ -3202,7 +3182,6 @@ static struct vfs_fn_pointers vfs_shadow_copy2_fns = {
        .getxattr_fn = shadow_copy2_getxattr,
        .getxattrat_send_fn = vfs_not_implemented_getxattrat_send,
        .getxattrat_recv_fn = vfs_not_implemented_getxattrat_recv,
-       .removexattr_fn = shadow_copy2_removexattr,
        .fsetxattr_fn = shadow_copy2_fsetxattr,
        .chflags_fn = shadow_copy2_chflags,
        .get_real_filename_fn = shadow_copy2_get_real_filename,