smb2_ioctl: perform locking around copychunk requests
authorDavid Disseldorp <ddiss@samba.org>
Tue, 15 Jan 2013 16:23:05 +0000 (17:23 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 16 Jan 2013 22:15:07 +0000 (23:15 +0100)
commita7c2f13d7a5646f2a63ce33e8155ce79d10ef696
treef52aaf8b8c1a707ba315f679de691c63b3962b80
parent7ca8663e313a55fd6157cf20eb02c2ac8be94a00
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>
source3/smbd/smb2_ioctl_network_fs.c