Allow copy offload (CopyChunk) across shares
authorSteve French <smfrench@gmail.com>
Mon, 9 Nov 2015 14:59:45 +0000 (08:59 -0600)
committerSteve French <smfrench@gmail.com>
Mon, 9 Nov 2015 15:28:48 +0000 (09:28 -0600)
commit7b52e2793a58af61b5d349c2c080437a437a4edb
tree63bec3e0a057f29f7d1038bad4a9adc1d1f3c4ec
parent592fafe644bf3a48b9e00e182a67d301493634fc
Allow copy offload (CopyChunk) across shares

FSCTL_SRV_COPYCHUNK_WRITE only requires that the source and target
be on the same server (not the same volume or same share),
so relax the existing check (which required them to be on
the same share). Note that this works to Windows (and presumably
most other NAS) but Samba requires that the source
and target be on the same share.  Moving a file across
shares is a common use case and can be very heplful (100x faster).

Signed-off-by: Steve French <steve.french@primarydata.com>
Reviewed-by: David Disseldorp <ddiss@samba.org>
fs/cifs/cifsfs.c
fs/cifs/ioctl.c