]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: media_harmony: Remove mh_removexattr(). No longer called.
authorJeremy Allison <jra@samba.org>
Mon, 22 Mar 2021 18:54:14 +0000 (11:54 -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_media_harmony.c

index 67ac950cbd7eb40aa983a6bab1e6705129fb7521..06138ff65e0a068c3451a968545524db8d0cfe65 100644 (file)
@@ -2129,38 +2129,6 @@ out:
        return ret;
 }
 
-/*
- * Success: return 0
- * Failure: set errno, return -1
- * In this case, "name" is an attr name.
- */
-static int mh_removexattr(struct vfs_handle_struct *handle,
-               const struct smb_filename *smb_fname,
-               const char *name)
-{
-       int status;
-       struct smb_filename *clientFname = NULL;
-
-       DEBUG(MH_INFO_DEBUG, ("Entering mh_removexattr\n"));
-       if (!is_in_media_files(smb_fname->base_name)) {
-               status = SMB_VFS_NEXT_REMOVEXATTR(handle, smb_fname, name);
-               goto out;
-       }
-
-       status = alloc_get_client_smb_fname(handle,
-                               talloc_tos(),
-                               smb_fname,
-                               &clientFname);
-       if (status != 0) {
-               goto err;
-       }
-       status = SMB_VFS_NEXT_REMOVEXATTR(handle, clientFname, name);
-err:
-       TALLOC_FREE(clientFname);
-out:
-       return status;
-}
-
 /*
  * Success: return 0
  * Failure: set errno, return -1
@@ -2218,7 +2186,6 @@ static struct vfs_fn_pointers vfs_mh_fns = {
        .getxattr_fn = mh_getxattr,
        .getxattrat_send_fn = vfs_not_implemented_getxattrat_send,
        .getxattrat_recv_fn = vfs_not_implemented_getxattrat_recv,
-       .removexattr_fn = mh_removexattr,
 
        /* aio operations */
 };