s3/smbd: use SMB_VFS_OFFLOAD_READ_SEND/RECV
authorRalph Boehme <slow@samba.org>
Tue, 6 Jun 2017 10:23:27 +0000 (12:23 +0200)
committerRalph Boehme <slow@samba.org>
Mon, 3 Jul 2017 17:59:08 +0000 (19:59 +0200)
commit67ed1edba75e967d7d8d4157f918b50d23c47b0b
tree1cc62c41ed2a9664217a2c4ed079508914f34897
parentaf6cbc7a441e05f71ae4e97c7d82c27868633e53
s3/smbd: use SMB_VFS_OFFLOAD_READ_SEND/RECV

No change in behaviour, this just uses the new SMB_VFS_OFFLOAD_READ_SEND
in the duplicate extents and the resume key ioctls.

In the copy-chunk/resume-key case this means using
SMB_VFS_OFFLOAD_READ_SEND to create the resume-key token that is
returned to the client.

In the duplicate-extents case this ensures we can later call
offload-write, which requires a previous call to offload-read that
associates a token with a file-handle.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/smb2_ioctl_filesys.c
source3/smbd/smb2_ioctl_network_fs.c