1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/examples/VFS
Jeremy Allison 716ea734e4 Rename vfs operation posix_fallocate to just fallocate and add the vfs_fallocate_mode parameter.
It turns out we need the fallocate operations to be able to both
allocate and extend filesize, and to allocate and not extend
filesize, and posix_fallocate can only do the former. So by defining
the vfs op as posix_fallocate we lose the opportunity to use any
underlying syscalls (like Linux fallocate) that can do the latter
as well.

We don't currently use the non-extending filesize call, but now
I've changed the vfs op definition we can in the future. For the
moment simply map the fallocate op onto posix_fallocate for the
VFS_FALLOCATE_EXTEND_SIZE case and return ENOSYS for the
VFS_FALLOCATE_KEEP_SIZE case.

Jeremy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Dec 18 08:59:27 CET 2010 on sn-devel-104
2010-12-18 08:59:27 +01:00
..
autogen.sh r5131: BUG 2290: don;t call mkversion.sh since we don't have it in this directory 2007-10-10 10:55:28 -05: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 examples/VFS: fix the configure and make with the new directory layout 2009-02-05 17:28:48 +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 examples/VFS: fix the configure and make with the new directory layout 2009-02-05 17:28:48 +01:00
README 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
shadow_copy_test.c Fix vfs module sample for new interface. 2009-09-25 20:51:50 -07:00
skel_opaque.c Rename vfs operation posix_fallocate to just fallocate and add the vfs_fallocate_mode parameter. 2010-12-18 08:59:27 +01:00
skel_transparent.c Rename vfs operation posix_fallocate to just fallocate and add the vfs_fallocate_mode parameter. 2010-12-18 08:59:27 +01: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_transport.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.