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

index 564b4bee125bc00a5252d3238057b205135eaa2e..3b900c835a0de29735ecbfd3c6a8df40d37ff7c8 100644 (file)
@@ -2511,26 +2511,6 @@ static ssize_t snapper_gmt_getxattr(vfs_handle_struct *handle,
        return ret;
 }
 
-static int snapper_gmt_removexattr(vfs_handle_struct *handle,
-                               const struct smb_filename *smb_fname,
-                               const char *aname)
-{
-       time_t timestamp = 0;
-
-       if (!snapper_gmt_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 snapper_gmt_fsetxattr(struct vfs_handle_struct *handle,
                                struct files_struct *fsp,
                                const char *aname, const void *value,
@@ -2756,7 +2736,6 @@ static struct vfs_fn_pointers snapper_fns = {
        .getxattr_fn = snapper_gmt_getxattr,
        .getxattrat_send_fn = vfs_not_implemented_getxattrat_send,
        .getxattrat_recv_fn = vfs_not_implemented_getxattrat_recv,
-       .removexattr_fn = snapper_gmt_removexattr,
        .fsetxattr_fn = snapper_gmt_fsetxattr,
        .chflags_fn = snapper_gmt_chflags,
        .get_real_filename_fn = snapper_gmt_get_real_filename,