summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-09-18 20:36:50 +0000
committerJeremy Allison <jra@samba.org>2002-09-18 20:36:50 +0000
commit7af9901fdb56ddf02c821064ccaeece7661c3b97 (patch)
tree2a3f06832c351964d6ef5758fdf417a59f2baa16 /source3/param
parent994638f577d2d0df8f5f185fd96d4448dcd9d7e5 (diff)
downloadsamba-7af9901fdb56ddf02c821064ccaeece7661c3b97.tar.gz
samba-7af9901fdb56ddf02c821064ccaeece7661c3b97.tar.bz2
samba-7af9901fdb56ddf02c821064ccaeece7661c3b97.zip
Added "use sendfile" per share option.
Jeremy. (This used to be commit 28466ff42c3328e49d46f7cddfc4bb2fe462d871)
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 7607760cca..67128c75d2 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -384,7 +384,9 @@ typedef struct
BOOL bUseClientDriver;
BOOL bDefaultDevmode;
BOOL bNTAclSupport;
-
+#ifdef WITH_SENDFILE
+ BOOL bUseSendfile;
+#endif
char dummy[3]; /* for alignment */
}
service;
@@ -504,6 +506,9 @@ static service sDefault = {
False, /* bUseClientDriver */
False, /* bDefaultDevmode */
True, /* bNTAclSupport */
+#ifdef WITH_SENDFILE
+ False, /* bUseSendfile */
+#endif
"" /* dummy */
};
@@ -841,6 +846,9 @@ static struct parm_struct parm_table[] = {
{"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, FLAG_DEVELOPER},
+#ifdef WITH_SENDFILE
+ {"use sendfile", P_BOOL, P_LOCAL, &sDefault.bUseSendfile, NULL, NULL, FLAG_SHARE},
+#endif
{"hostname lookups", P_BOOL, P_GLOBAL, &Globals.bHostnameLookups, NULL, NULL, FLAG_ADVANCED | FLAG_DEVELOPER},
{"write cache size", P_INTEGER, P_LOCAL, &sDefault.iWriteCacheSize, NULL, NULL, FLAG_SHARE},
@@ -1728,6 +1736,9 @@ FN_LOCAL_BOOL(lp_inherit_acls, bInheritACLS)
FN_LOCAL_BOOL(lp_use_client_driver, bUseClientDriver)
FN_LOCAL_BOOL(lp_default_devmode, bDefaultDevmode)
FN_LOCAL_BOOL(lp_nt_acl_support, bNTAclSupport)
+#ifdef WITH_SENDFILE
+FN_LOCAL_BOOL(lp_use_sendfile, bUseSendfile)
+#endif
FN_LOCAL_INTEGER(lp_create_mask, iCreate_mask)
FN_LOCAL_INTEGER(lp_force_create_mode, iCreate_force_mode)
FN_LOCAL_INTEGER(lp_security_mask, iSecurity_mask)