]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: snapper: Remove SMB_VFS_NTIMES()
authorSamuel Cabrero <scabrero@samba.org>
Tue, 13 Apr 2021 15:42:56 +0000 (17:42 +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_snapper.c

index 8215ca108930e5a17df5142e22fec1095e552315..8d37b2dfe7d060b46975489a70fbdaf3d91076b6 100644 (file)
@@ -2222,24 +2222,6 @@ static int snapper_gmt_chdir(vfs_handle_struct *handle,
        return ret;
 }
 
-static int snapper_gmt_ntimes(vfs_handle_struct *handle,
-                             const struct smb_filename *smb_fname,
-                             struct smb_file_time *ft)
-{
-       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_NTIMES(handle, smb_fname, ft);
-}
-
 static int snapper_gmt_fntimes(vfs_handle_struct *handle,
                               files_struct *fsp,
                               struct smb_file_time *ft)
@@ -2753,7 +2735,6 @@ static struct vfs_fn_pointers snapper_fns = {
        .unlinkat_fn = snapper_gmt_unlinkat,
        .fchmod_fn = snapper_gmt_fchmod,
        .chdir_fn = snapper_gmt_chdir,
-       .ntimes_fn = snapper_gmt_ntimes,
        .fntimes_fn = snapper_gmt_fntimes,
        .readlinkat_fn = snapper_gmt_readlinkat,
        .mknodat_fn = snapper_gmt_mknodat,