smb2_ioctl: perform locking around copychunk requests
authorDavid Disseldorp <ddiss@samba.org>
Tue, 15 Jan 2013 16:23:05 +0000 (17:23 +0100)
committerDavid Disseldorp <ddiss@samba.org>
Mon, 15 Apr 2013 16:15:14 +0000 (18:15 +0200)
commit0a6c2dca44c41b490e7898da0f3b8eb7efa6bbe0
tree4fc307dd01e6028fa4daecd92a53d5d2cc7a07b5
parent146fc50669855a855e84537d20d53bcf439ef52b
smb2_ioctl: perform locking around copychunk requests

For each chunk in a copychunk request, take a read and write lock on
the source and destination files respectively.

Also change the resume key format to use a combination of the persistent
and volatile handles. Thanks to Metze for his help on this.

Reviewed by: Jeremy Allison <jra@samba.org>

(cherry picked from commit a7c2f13d7a5646f2a63ce33e8155ce79d10ef696)
source3/smbd/smb2_ioctl_network_fs.c