summaryrefslogtreecommitdiff
path: root/source3/smbd/smb2_ioctl_filesys.c
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2017-06-10 09:05:55 +0200
committerRalph Boehme <slow@samba.org>2017-07-03 19:59:08 +0200
commit2d01558ad3d9452c8c64a30e5bf143b4bdc3e207 (patch)
tree245c4b437a8a65534e11cbad27cacac9cd8ee6f3 /source3/smbd/smb2_ioctl_filesys.c
parentfe6d71d7f978c4db8401ccff3cce17c9368b24e4 (diff)
downloadsamba-2d01558ad3d9452c8c64a30e5bf143b4bdc3e207.tar.gz
s3/smbd: remove unneeded flags argument from SMB_VFS_OFFLOAD_WRITE_SEND
...and instead use the fsctl to infer required behaviour in the VFS backends. Note that this removes the check from vfs_default because there we only handle FSCTL_SRV_COPYCHUNK(_WRITE) and must always perform the lock checks. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/smbd/smb2_ioctl_filesys.c')
-rw-r--r--source3/smbd/smb2_ioctl_filesys.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/smbd/smb2_ioctl_filesys.c b/source3/smbd/smb2_ioctl_filesys.c
index fa1cb93c439..732e3ab96fc 100644
--- a/source3/smbd/smb2_ioctl_filesys.c
+++ b/source3/smbd/smb2_ioctl_filesys.c
@@ -295,9 +295,7 @@ static void fsctl_dup_extents_offload_read_done(struct tevent_req *subreq)
state->dup_extents.source_off,
state->dst_fsp,
state->dup_extents.target_off,
- state->dup_extents.byte_count,
- VFS_OFFLOAD_WRITE_FL_MUST_CLONE
- | VFS_OFFLOAD_WRITE_FL_IGNORE_LOCKS);
+ state->dup_extents.byte_count);
if (tevent_req_nomem(subreq, req)) {
return;
}