1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

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>
This commit is contained in:
Jeremy Allison 2019-08-09 16:10:06 -07:00
parent d080085273
commit 8e6a283a16

View 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,