diff options
author | Ralph Boehme <slow@samba.org> | 2017-06-09 13:02:49 +0200 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2017-07-03 19:59:08 +0200 |
commit | 3645f83a3c83fa3e4bf4dbacf885cc4295e7eadd (patch) | |
tree | 7b14b55f4f51eb63d786b91f5c0533f4d5df611f /source3/modules/vfs_full_audit.c | |
parent | d50f307e97ae28b9fbdc2e6cffb1b5493c583a09 (diff) | |
download | samba-3645f83a3c83fa3e4bf4dbacf885cc4295e7eadd.tar.gz |
s3/vfs: make SMB_VFS_OFFLOAD_WRITE_SEND offload token based
Remove the source fsp argument and instead pass the offload token
generated with SMB_VFS_OFFLOAD_READ_SEND/RECV.
An actual offload fsctl is not implemented yet, neither in the VFS nor
at the SMB ioctl layer, and returns NT_STATUS_NOT_IMPLEMENTED
With these changes we now pass the copy-chunk-across-shares test.
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/modules/vfs_full_audit.c')
-rw-r--r-- | source3/modules/vfs_full_audit.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/source3/modules/vfs_full_audit.c b/source3/modules/vfs_full_audit.c index f9d14a8e845..892cf5d7378 100644 --- a/source3/modules/vfs_full_audit.c +++ b/source3/modules/vfs_full_audit.c @@ -1944,8 +1944,9 @@ static NTSTATUS smb_full_audit_offload_read_recv( static struct tevent_req *smb_full_audit_offload_write_send(struct vfs_handle_struct *handle, TALLOC_CTX *mem_ctx, struct tevent_context *ev, - struct files_struct *src_fsp, - off_t src_off, + uint32_t fsctl, + DATA_BLOB *token, + off_t transfer_offset, struct files_struct *dest_fsp, off_t dest_off, off_t num, @@ -1953,8 +1954,9 @@ static struct tevent_req *smb_full_audit_offload_write_send(struct vfs_handle_st { struct tevent_req *req; - req = SMB_VFS_NEXT_OFFLOAD_WRITE_SEND(handle, mem_ctx, ev, src_fsp, - src_off, dest_fsp, dest_off, num, + req = SMB_VFS_NEXT_OFFLOAD_WRITE_SEND(handle, mem_ctx, ev, + fsctl, token, transfer_offset, + dest_fsp, dest_off, num, flags); do_log(SMB_VFS_OP_OFFLOAD_WRITE_SEND, req, handle, ""); |