s3: VFS: unityed_media: Remove SMB_VFS_NTIMES()
authorSamuel Cabrero <scabrero@samba.org>
Tue, 13 Apr 2021 15:45:51 +0000 (17:45 +0200)
committerSamuel Cabrero <scabrero@sn-devel-184>
Mon, 19 Apr 2021 12:28:30 +0000 (12:28 +0000)
Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_unityed_media.c

index d9ac51cf50c9ffc4017fec258ee383a5f5d3f0d8..27acf9d75f54ca21908e3efb59882a6a79b37f8c 100644 (file)
@@ -1209,32 +1209,6 @@ err:
        return status;
 }
 
-static int um_ntimes(vfs_handle_struct *handle,
-                    const struct smb_filename *smb_fname,
-                    struct smb_file_time *ft)
-{
-       int status;
-       struct smb_filename *client_fname = NULL;
-
-       DEBUG(10, ("Entering um_ntimes\n"));
-
-       if (!is_in_media_files(smb_fname->base_name)) {
-               return SMB_VFS_NEXT_NTIMES(handle, smb_fname, ft);
-       }
-
-       status = alloc_get_client_smb_fname(handle, talloc_tos(),
-                                           smb_fname, &client_fname);
-       if (status != 0) {
-               goto err;
-       }
-
-       status = SMB_VFS_NEXT_NTIMES(handle, client_fname, ft);
-
-err:
-       TALLOC_FREE(client_fname);
-       return status;
-}
-
 static int um_symlinkat(vfs_handle_struct *handle,
                        const struct smb_filename *link_contents,
                        struct files_struct *dirfsp,
@@ -1769,7 +1743,6 @@ static struct vfs_fn_pointers vfs_um_fns = {
        .unlinkat_fn = um_unlinkat,
        .lchown_fn = um_lchown,
        .chdir_fn = um_chdir,
-       .ntimes_fn = um_ntimes,
        .symlinkat_fn = um_symlinkat,
        .readlinkat_fn = um_readlinkat,
        .linkat_fn = um_linkat,