1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

VFS: shadow_copy2: Remove SMB_VFS_CHFLAGS

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Noel Power 2021-06-11 16:33:02 +01:00 committed by Noel Power
parent 205532f38a
commit 3d71465b46

View File

@ -2165,26 +2165,6 @@ static int shadow_copy2_mkdirat(vfs_handle_struct *handle,
mode);
}
static int shadow_copy2_chflags(vfs_handle_struct *handle,
const struct smb_filename *smb_fname,
unsigned int flags)
{
time_t timestamp = 0;
if (!shadow_copy2_strip_snapshot(talloc_tos(),
handle,
smb_fname,
&timestamp,
NULL)) {
return -1;
}
if (timestamp != 0) {
errno = EROFS;
return -1;
}
return SMB_VFS_NEXT_CHFLAGS(handle, smb_fname, flags);
}
static int shadow_copy2_fchflags(vfs_handle_struct *handle,
struct files_struct *fsp,
unsigned int flags)
@ -3224,7 +3204,6 @@ static struct vfs_fn_pointers vfs_shadow_copy2_fns = {
.getxattrat_send_fn = vfs_not_implemented_getxattrat_send,
.getxattrat_recv_fn = vfs_not_implemented_getxattrat_recv,
.fsetxattr_fn = shadow_copy2_fsetxattr,
.chflags_fn = shadow_copy2_chflags,
.fchflags_fn = shadow_copy2_fchflags,
.get_real_filename_fn = shadow_copy2_get_real_filename,
.pwrite_fn = shadow_copy2_pwrite,