summaryrefslogtreecommitdiffstats
path: root/source/param
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-08-14 16:13:59 +0000
committerGerald Carter <jerry@samba.org>2004-08-14 16:13:59 +0000
commit40ea2b654c892beaf4f9e0248a3eb76f7f3b3aae (patch)
tree128ae698bd11a8d6ab12d56dee3d17129e01eb83 /source/param
parent547587d57c0ca7fa5babac358d4b2f67a472e142 (diff)
downloadsamba-40ea2b654c892beaf4f9e0248a3eb76f7f3b3aae.tar.gz
samba-40ea2b654c892beaf4f9e0248a3eb76f7f3b3aae.tar.xz
samba-40ea2b654c892beaf4f9e0248a3eb76f7f3b3aae.zip
r1822: syncing up files for 3.0.6 next week
Diffstat (limited to 'source/param')
-rw-r--r--source/param/loadparm.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/param/loadparm.c b/source/param/loadparm.c
index 549e232fe07..4150f57e55d 100644
--- a/source/param/loadparm.c
+++ b/source/param/loadparm.c
@@ -4324,6 +4324,18 @@ BOOL lp_use_sendfile(int snum)
}
/*******************************************************************
+ Turn off sendfile if we find the underlying OS doesn't support it.
+********************************************************************/
+
+void set_use_sendfile(int snum, BOOL val)
+{
+ if (LP_SNUM_OK(snum))
+ ServicePtrs[snum]->bUseSendfile = val;
+ else
+ sDefault.bUseSendfile = val;
+}
+
+/*******************************************************************
Turn off storing DOS attributes if this share doesn't support it.
********************************************************************/