1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/examples
David Disseldorp 12c0b6bf40 s3/vfs: change fallocate mode flags from enum->uint32_t
The Linux fallocate syscall offers a mode parameter which can take the
following flags:
FALLOC_FL_KEEP_SIZE
FALLOC_FL_PUNCH_HOLE (since 2.6.38)
FALLOC_FL_COLLAPSE_RANGE (since 3.15)
FALLOC_FL_ZERO_RANGE (since 3.14)

The flags are not exclusive, e.g. FALLOC_FL_PUNCH_HOLE must be specified
alongside FALLOC_FL_KEEP_SIZE.

Samba currently takes a vfs_fallocate_mode enum parameter for the VFS
fallocate hook, taking either an EXTEND_SIZE or KEEP_SIZE value. This
commit changes the fallocate hook such that it accepts a uint32_t flags
parameter, in preparation for PUNCH_HOLE and ZERO_RANGE support.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2015-03-09 21:27:07 +01:00
..
ad-bench AD-Bench: A first go at an Active Directory benchmark. 2009-10-07 15:45:46 +02:00
auth s3-modules: remove the last "init_module" traces. 2011-11-14 18:44:41 +01:00
autofs r2014: BUG 1656: rename auto.a to auto.smb 2007-10-10 10:52:27 -05:00
dce-dfs Remove remaining references to "password level" in the tree 2013-06-11 16:25:54 +02:00
LDAP Reserve an OID space for external projects 2013-10-18 05:47:29 +02:00
libsmbclient Fix the developer O3 build 2015-02-25 16:32:29 +01:00
logon Fix bug #5171 (perl syntax error) found by Jason Filley <jason@snakelegs.org> 2008-01-14 15:46:01 +01:00
misc swat: Remove swat. 2013-05-18 16:32:38 +02:00
nss merge from 3.0 2004-02-09 18:48:44 +00:00
pam_winbind pam_winbind: update documentation for "DIR" krb5ccname pragma. 2013-07-24 02:43:09 +02:00
pcap2nbench r23801: The FSF has moved around a lot. This fixes their Mass Ave address. 2007-10-10 12:28:27 -05:00
pdb s3-modules: remove the last "init_module" traces. 2011-11-14 18:44:41 +01:00
perfcounter examples: Fix scanf format in perf_writer_disk. 2013-11-15 11:07:52 -08:00
printer-accounting
printing packaging: Move smbprint to a comman location. 2012-10-29 14:08:37 +01:00
scripts Remove remaining references to "password level" in the tree 2013-06-11 16:25:54 +02:00
tridge Remove remaining references to "password level" in the tree 2013-06-11 16:25:54 +02:00
validchars
VFS s3/vfs: change fallocate mode flags from enum->uint32_t 2015-03-09 21:27:07 +01:00
README Update mailing list references to point at lists.samba.org 2015-02-10 07:08:28 +01:00
smb.conf.default examples: Remove browser and DC settings from example smb.conf 2013-05-27 11:56:58 +10:00

Copyright(C) Samba-Team 1993-2001

This directory contains example config files and related material for
Samba. 

At a minimum please refer to the smb.conf.default file for current
information regarding global and share parameter settings.

Send additions to: samba-technical@lists.samba.org