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

index b455a654c22fa97ab90b948e8aa055b519ac3f1e..5d9d3161bb2a4f59d80eb1fbc0703cef2c197622 100644 (file)
@@ -1003,27 +1003,6 @@ static int ceph_snap_gmt_chdir(vfs_handle_struct *handle,
        return ret;
 }
 
-static int ceph_snap_gmt_ntimes(vfs_handle_struct *handle,
-                             const struct smb_filename *csmb_fname,
-                             struct smb_file_time *ft)
-{
-       time_t timestamp = 0;
-       int ret;
-
-       ret = ceph_snap_gmt_strip_snapshot(handle,
-                                       csmb_fname,
-                                       &timestamp, NULL, 0);
-       if (ret < 0) {
-               errno = -ret;
-               return -1;
-       }
-       if (timestamp != 0) {
-               errno = EROFS;
-               return -1;
-       }
-       return SMB_VFS_NEXT_NTIMES(handle, csmb_fname, ft);
-}
-
 static int ceph_snap_gmt_fntimes(vfs_handle_struct *handle,
                                 files_struct *fsp,
                                 struct smb_file_time *ft)
@@ -1487,7 +1466,6 @@ static struct vfs_fn_pointers ceph_snap_fns = {
        .unlinkat_fn = ceph_snap_gmt_unlinkat,
        .fchmod_fn = ceph_snap_gmt_fchmod,
        .chdir_fn = ceph_snap_gmt_chdir,
-       .ntimes_fn = ceph_snap_gmt_ntimes,
        .fntimes_fn = ceph_snap_gmt_fntimes,
        .readlinkat_fn = ceph_snap_gmt_readlinkat,
        .mknodat_fn = ceph_snap_gmt_mknodat,