summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2019-08-09 16:10:06 -0700
committerJeremy Allison <jra@samba.org>2019-08-16 19:52:36 +0000
commit8e6a283a16f10f9d83e66d41271ccef536c85f0b (patch)
tree137e26cac9a4e5c78d47f9b816967cb4a28c94c1 /source3
parentd080085273f8c723dd1a844743904cf1cd9822a1 (diff)
downloadsamba-8e6a283a16f10f9d83e66d41271ccef536c85f0b.tar.gz
s3: VFS: vfs_snapper. Remove rename_fn(). No longer used.
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/modules/vfs_snapper.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/source3/modules/vfs_snapper.c b/source3/modules/vfs_snapper.c
index 6222b2f19a8..4975cdf6fb4 100644
--- a/source3/modules/vfs_snapper.c
+++ b/source3/modules/vfs_snapper.c
@@ -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,