s3/vfs: add SMB_VFS_OFFLOAD_READ_SEND/RECV
authorRalph Boehme <slow@samba.org>
Sat, 3 Jun 2017 10:57:59 +0000 (12:57 +0200)
committerRalph Boehme <slow@samba.org>
Mon, 3 Jul 2017 17:59:07 +0000 (19:59 +0200)
commitaf6cbc7a441e05f71ae4e97c7d82c27868633e53
tree9ab33e5a413195193694174fbb5c205cad1db1c0
parent47600c4977fb013f6f7c63f90ac9d64eac71bd71
s3/vfs: add SMB_VFS_OFFLOAD_READ_SEND/RECV

Add SMB_VFS_OFFLOAD_READ_SEND an SMB_VFS_OFFLOAD_READ_RECV.

This paves the way for supporting server-side copy-chunk with source and
destination file-handles on different shares. It can be used to
implement copy offload fsctl in the future, but for now this will be
used as a mere copy-chunk replacement.

SMB_VFS_OFFLOAD_READ generates a token that associates an fsp with the
token and stores the fsp in a in-memory db.

Initially only a copy-chunk resume key fsctl is supported. In the future
this can be enhanced to support real offload fsctl.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
13 files changed:
examples/VFS/skel_opaque.c
examples/VFS/skel_transparent.c
source3/include/vfs.h
source3/include/vfs_macros.h
source3/modules/offload_token.c [new file with mode: 0644]
source3/modules/offload_token.h [new file with mode: 0644]
source3/modules/vfs_btrfs.c
source3/modules/vfs_default.c
source3/modules/vfs_fruit.c
source3/modules/vfs_full_audit.c
source3/modules/vfs_time_audit.c
source3/modules/wscript_build
source3/smbd/vfs.c