]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: vfs_snapper. Remove rename_fn(). No longer used.
authorJeremy Allison <jra@samba.org>
Fri, 9 Aug 2019 23:10:06 +0000 (16:10 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 16 Aug 2019 19:52:36 +0000 (19:52 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_snapper.c

index 6222b2f19a88b93326802ea6558612a1509dad04..4975cdf6fb4c05a7cea24e7e9d61deb23a6d857a 100644 (file)
@@ -2009,33 +2009,6 @@ static DIR *snapper_gmt_opendir(vfs_handle_struct *handle,
        return ret;
 }
 
-static int snapper_gmt_rename(vfs_handle_struct *handle,
-                             const struct smb_filename *smb_fname_src,
-                             const struct smb_filename *smb_fname_dst)
-{
-       time_t timestamp_src, timestamp_dst;
-
-       if (!snapper_gmt_strip_snapshot(talloc_tos(), handle,
-                                       smb_fname_src->base_name,
-                                       &timestamp_src, NULL)) {
-               return -1;
-       }
-       if (!snapper_gmt_strip_snapshot(talloc_tos(), handle,
-                                       smb_fname_dst->base_name,
-                                       &timestamp_dst, NULL)) {
-               return -1;
-       }
-       if (timestamp_src != 0) {
-               errno = EXDEV;
-               return -1;
-       }
-       if (timestamp_dst != 0) {
-               errno = EROFS;
-               return -1;
-       }
-       return SMB_VFS_NEXT_RENAME(handle, smb_fname_src, smb_fname_dst);
-}
-
 static int snapper_gmt_renameat(vfs_handle_struct *handle,
                        files_struct *srcfsp,
                        const struct smb_filename *smb_fname_src,
@@ -2888,7 +2861,6 @@ static struct vfs_fn_pointers snapper_fns = {
        .opendir_fn = snapper_gmt_opendir,
        .disk_free_fn = snapper_gmt_disk_free,
        .get_quota_fn = snapper_gmt_get_quota,
-       .rename_fn = snapper_gmt_rename,
        .renameat_fn = snapper_gmt_renameat,
        .link_fn = snapper_gmt_link,
        .symlink_fn = snapper_gmt_symlink,