From ef00eb90e56dfac2d823582cec92abf1fa9905f1 Mon Sep 17 00:00:00 2001 From: David Disseldorp Date: Tue, 15 Jan 2013 17:22:59 +0100 Subject: s3-vfs: add copy_chunk vfs hooks copy_chunk copies n bytes from a source file at a specific offset to a destination file at a given offset. This interface will be used in handling smb2 FSCTL_SRV_COPYCHUNK ioctl requests. Use a pread/pwrite loop in vfs_default, so that requests referring to the same src and dest file are possible. Provide send and receive hooks for copy chunk VFS interface, allowing asynchronous behaviour. Check whether the request source offset + length exceeds the current size. Return STATUS_INVALID_VIEW_SIZE under such a condition, matching Windows server behaviour. Reviewed by: Jeremy Allison --- docs-xml/manpages/vfs_full_audit.8.xml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docs-xml/manpages') diff --git a/docs-xml/manpages/vfs_full_audit.8.xml b/docs-xml/manpages/vfs_full_audit.8.xml index a44924a8f6..312bc25078 100644 --- a/docs-xml/manpages/vfs_full_audit.8.xml +++ b/docs-xml/manpages/vfs_full_audit.8.xml @@ -46,6 +46,8 @@ close closedir connect + copy_chunk_send + copy_chunk_recv disconnect disk_free fchmod -- cgit