smb2_ioctl: add support for FSCTL_SRV_COPYCHUNK_WRITE
authorDavid Disseldorp <ddiss@samba.org>
Sat, 19 Oct 2013 01:47:06 +0000 (03:47 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 25 Oct 2013 18:41:19 +0000 (11:41 -0700)
commita13fda747238c5780d10bdf80b00edd8c2d1f6d3
tree6827fd9316af8f99b923a02f8e7400fc6b0c11cb
parentef4054eb88df7b4809c4cbe99b65a0e0efcd78c4
smb2_ioctl: add support for FSCTL_SRV_COPYCHUNK_WRITE

FSCTL_SRV_COPYCHUNK can only be used when the client has the copy-chunk
target file open with FILE_WRITE_DATA and FILE_READ_DATA.
FSCTL_SRV_COPYCHUNK_WRITE requires only FILE_WRITE_DATA access on the
target, and is therefore suitable for cp --reflink, which opens the
target file O_WRONLY.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/smb2_ioctl_network_fs.c