]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
VFS: unityed_media: Remove SMB_VFS_CHFLAGS
authorNoel Power <noel.power@suse.com>
Fri, 11 Jun 2021 15:34:01 +0000 (16:34 +0100)
committerNoel Power <npower@samba.org>
Tue, 29 Jun 2021 08:21:38 +0000 (08:21 +0000)
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_unityed_media.c

index afc746a99f3e9a925b4ffaa140a10517ea35a5b1..94b8ac988705028ae20d6dc0efd9e09746682577 100644 (file)
@@ -1466,31 +1466,6 @@ err:
        return result_fname;
 }
 
-static int um_chflags(vfs_handle_struct *handle,
-                       const struct smb_filename *smb_fname,
-                       unsigned int flags)
-{
-       int status;
-       struct smb_filename *client_fname = NULL;
-
-       DEBUG(10, ("Entering um_mknod\n"));
-       if (!is_in_media_files(smb_fname->base_name)) {
-               return SMB_VFS_NEXT_CHFLAGS(handle, smb_fname, flags);
-       }
-
-       status = alloc_get_client_smb_fname(handle, talloc_tos(),
-                                           smb_fname, &client_fname);
-       if (status != 0) {
-               goto err;
-       }
-
-       status = SMB_VFS_NEXT_CHFLAGS(handle, client_fname, flags);
-
-err:
-       TALLOC_FREE(client_fname);
-       return status;
-}
-
 static ssize_t um_getxattr(struct vfs_handle_struct *handle,
                           const struct smb_filename *smb_fname,
                           const char *name,
@@ -1593,7 +1568,6 @@ static struct vfs_fn_pointers vfs_um_fns = {
        .linkat_fn = um_linkat,
        .mknodat_fn = um_mknodat,
        .realpath_fn = um_realpath,
-       .chflags_fn = um_chflags,
 
        /* EA operations. */
        .getxattr_fn = um_getxattr,