diff options
author | Jeremy Allison <jra@samba.org> | 2004-08-06 17:49:00 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:52:18 -0500 |
commit | e0475afa8375eb27795aaecca16f8ae6f98666e7 (patch) | |
tree | a69314c3e78028ebe86e725a9fc06c5efc9c94b7 /source3/param/loadparm.c | |
parent | 161d3eeb4b6e32fda6ba9eabad54bf7d8dc43e54 (diff) | |
download | samba-e0475afa8375eb27795aaecca16f8ae6f98666e7.tar.gz samba-e0475afa8375eb27795aaecca16f8ae6f98666e7.tar.bz2 samba-e0475afa8375eb27795aaecca16f8ae6f98666e7.zip |
r1665: Patch from James Peach @ SGI to stop using sendfile if it isn't
supported by the underlying OS.
Jeremy.
(This used to be commit 1b0c70cf97aa45093fe5ef866a351b47ef1a5879)
Diffstat (limited to 'source3/param/loadparm.c')
-rw-r--r-- | source3/param/loadparm.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 549e232fe0..4150f57e55 100644 --- a/source3/param/loadparm.c +++ b/source3/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. ********************************************************************/ |