1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/examples/VFS
David Disseldorp ef00eb90e5 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 <jra@samba.org>
2013-01-16 23:15:06 +01:00
..
autogen.sh examples/VFS: try to fix the build on openbsd, adding alternative spellings of autoconf/header 2011-07-06 12:55:25 +02:00
config.guess VFS examples: Update copy of config.{guess,sub}. 2009-07-18 20:04:11 +02:00
config.sub VFS examples: Update copy of config.{guess,sub}. 2009-07-18 20:04:11 +02:00
configure.in s3-build: remove EXEEXT from Makefiles 2012-02-09 00:27:08 +01:00
install-sh Move VFS example skel.c to two different examples: one for opaque operations and one for transparent. Also add configure support for compiling third-party modules. Patch from Stefan Metzmacher <metze@metzemix.de> 2003-06-04 13:13:41 +00:00
Makefile.in Make it possible to build under Solaris make as well as FreeBSD and Linux. Also add comments on changes that might be needed 2012-07-31 19:24:12 -07:00
README examples/VFS: fix a typo in the README 2011-10-08 01:42:33 +02:00
shadow_copy_test.c examples/VFS: don't use smbd/proto.h 2012-06-06 10:18:38 +02:00
skel_opaque.c s3-vfs: add copy_chunk vfs hooks 2013-01-16 23:15:06 +01:00
skel_transparent.c s3-vfs: add copy_chunk vfs hooks 2013-01-16 23:15:06 +01:00
wscript_build s3-waf: make sure we build example vfs modules with --enable-developer. 2011-10-11 21:22:55 +02:00

README for Samba Virtual File System (VFS) Example
===================================================

This directory contains skeleton VFS modules.  When used,
this module simply passes all requests back to the disk functions
(i.e it operates as a passthrough filter).  It should be
useful as a starting point for developing new VFS
modules. 

Please look at skel_opaque.c when you want your module to provide
final functions, like a database filesystem.

Please look at skel_transparent.c when you want your module to provide
passthrough functions, like audit modules. 

Please read the VFS chapter in the HOWTO collection for general help 
on the usage of VFS modules.

Further documentation on writing VFS modules for Samba can be found in
Samba Developers Guide.