1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

s3: VFS: vfs_shadow_copy2. Remove mkdir_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-09-06 15:48:20 -07:00 committed by Ralph Boehme
parent c33eee0232
commit 8470fe4ad0

View File

@ -2273,26 +2273,6 @@ static NTSTATUS shadow_copy2_get_nt_acl(vfs_handle_struct *handle,
return status;
}
static int shadow_copy2_mkdir(vfs_handle_struct *handle,
const struct smb_filename *smb_fname,
mode_t mode)
{
time_t timestamp = 0;
if (!shadow_copy2_strip_snapshot(talloc_tos(),
handle,
smb_fname->base_name,
&timestamp,
NULL)) {
return -1;
}
if (timestamp != 0) {
errno = EROFS;
return -1;
}
return SMB_VFS_NEXT_MKDIR(handle, smb_fname, mode);
}
static int shadow_copy2_mkdirat(vfs_handle_struct *handle,
struct files_struct *dirfsp,
const struct smb_filename *smb_fname,
@ -3196,7 +3176,6 @@ static struct vfs_fn_pointers vfs_shadow_copy2_fns = {
.get_nt_acl_fn = shadow_copy2_get_nt_acl,
.fget_nt_acl_fn = shadow_copy2_fget_nt_acl,
.get_shadow_copy_data_fn = shadow_copy2_get_shadow_copy_data,
.mkdir_fn = shadow_copy2_mkdir,
.mkdirat_fn = shadow_copy2_mkdirat,
.rmdir_fn = shadow_copy2_rmdir,
.getxattr_fn = shadow_copy2_getxattr,