summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-08-01 22:13:50 +0000
committerJeremy Allison <jra@samba.org>2001-08-01 22:13:50 +0000
commit819a9117354e22a26608ea31fd75e6eb13a15d8e (patch)
tree852d453945f1927d148e799c12ce3a81716d481a /source3/param
parent861cb26f5d26790171b6a71d35fe2da7a50b386e (diff)
downloadsamba-819a9117354e22a26608ea31fd75e6eb13a15d8e.tar.gz
samba-819a9117354e22a26608ea31fd75e6eb13a15d8e.tar.bz2
samba-819a9117354e22a26608ea31fd75e6eb13a15d8e.zip
Added "strict allocate" per share parameter. This causes actual on-disk allocation
to be done. Without it just does the ftruncate. Jeremy. (This used to be commit 0b052f103e82369088bc30724b86d8892c395cdb)
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index a1871437ac..e4cd3a7982 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -363,6 +363,7 @@ typedef struct
BOOL bWidelinks;
BOOL bSymlinks;
BOOL bSyncAlways;
+ BOOL bStrictAllocate;
BOOL bStrictSync;
char magic_char;
BOOL *copymap;
@@ -476,6 +477,7 @@ static service sDefault = {
True, /* bWidelinks */
True, /* bSymlinks */
False, /* bSyncAlways */
+ False, /* bStrictAllocate */
False, /* bStrictSync */
'~', /* magic char */
NULL, /* copymap */
@@ -798,6 +800,7 @@ static struct parm_struct parm_table[] = {
{"socket options", P_GSTRING, P_GLOBAL, user_socket_options, NULL, NULL, 0},
{"stat cache size", P_INTEGER, P_GLOBAL, &Globals.stat_cache_size, NULL, NULL, 0},
+ {"strict allocate", P_BOOL, P_LOCAL, &sDefault.bStrictAllocate, NULL, NULL, FLAG_SHARE},
{"strict sync", P_BOOL, P_LOCAL, &sDefault.bStrictSync, NULL, NULL, FLAG_SHARE},
{"sync always", P_BOOL, P_LOCAL, &sDefault.bSyncAlways, NULL, NULL, FLAG_SHARE},
{"use mmap", P_BOOL, P_GLOBAL, &Globals.bUseMmap, NULL, NULL, 0},
@@ -1640,6 +1643,7 @@ FN_LOCAL_BOOL(lp_manglednames, bMangledNames)
FN_LOCAL_BOOL(lp_widelinks, bWidelinks)
FN_LOCAL_BOOL(lp_symlinks, bSymlinks)
FN_LOCAL_BOOL(lp_syncalways, bSyncAlways)
+FN_LOCAL_BOOL(lp_strict_allocate, bStrictAllocate)
FN_LOCAL_BOOL(lp_strict_sync, bStrictSync)
FN_LOCAL_BOOL(lp_map_system, bMap_system)
FN_LOCAL_BOOL(lp_delete_readonly, bDeleteReadonly)