mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
716ea734e4
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 |
||
---|---|---|
.. | ||
autogen.sh | ||
config.guess | ||
config.sub | ||
configure.in | ||
install-sh | ||
Makefile.in | ||
README | ||
shadow_copy_test.c | ||
skel_opaque.c | ||
skel_transparent.c |
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.