summaryrefslogtreecommitdiffstats
path: root/source/include/local.h
Commit message (Collapse)AuthorAgeFilesLines
* smbd: make it possible to change the write time delay for testingStefan Metzmacher2008-04-071-0/+3
| | | | metze
* r17107: Make the 200 ms timeout value tunable in local.h...Jeremy Allison2007-10-101-0/+3
| | | | | Might need to be a parameter ? Jeremy.
* r14763: Add a new tuning parameter, open files database hash size,Jeremy Allison2007-10-101-1/+1
| | | | | | | | | this allows us to experiment with ensuring the tdb hash size for our open files and locking db are appropriately sized. Make the hash size larger by default (10007 instead of 1049) and make the locking db hash size the same as the open file db hash size. Jeremy.
* r13316: Let the carnage begin....Gerald Carter2007-10-101-0/+9
| | | | Sync with trunk as off r13315
* r11435: Allow the hash size of the tdb open (locking) databaseJeremy Allison2007-10-101-0/+3
| | | | | | | | to be set in local.h. Change from the default (131) to another prime (1049). Should this be an smb.conf tunable parameter based on the number of open file descriptors available ? If so what scaling factor ? More tests to follow. Jeremy.
* r5636: Re-add the allocation size - parameterized by share asJeremy Allison2007-10-101-0/+3
| | | | | | | "allocation roundup size", by default set as 1Mb. From advice by BlueArc about Windows client behaviour. VC++ people can set this to zero to turn it off. Jeremy.
* r5548: Stop lying about allocation sizes to Windows clients. It was a niceJeremy Allison2007-10-101-3/+0
| | | | | | idea, and aparently improved performance in some circumstances, but it breaks the VC++ compiler :-(. Not cool. Fix bug #2146. Jeremy.
* r1325: Always use GetTimeOfDay() (wrapper). Ensure ldap replicationJeremy Allison2007-10-101-0/+2
| | | | | | sleep time is not more than 5 seconds. Should fix issue reported by Chris Garrigues <cwg@deepeddy.com>. Jeremy.
* r1085: Now it's had some proper user testing, merge in the deferred open ↵Jeremy Allison2007-10-101-0/+3
| | | | | | | | fix. I'm still doing more testing, but it fixes a behaviour that we've been wrong on ever since the start of Samba. Jeremy.
* parameterise the listen backlog in smbd and make it larger by default. A ↵Andrew Tridgell2003-10-291-0/+3
| | | | backlog of 5 is way too small these days.
* Backport my backtrace patch from HEADJelmer Vernooij2003-04-141-0/+4
|
* *Excellent* patch from Michael Steffens <michael_steffens@hp.com> to limitJeremy Allison2003-02-281-0/+2
| | | | | | | | | the unix domain sockets used by winbindd (also solves FD_SETSIZE problem in winbindd to boot !). Adds a "last_access" field to winbindd connections, and will close the oldest idle connection once the number of open connections goes over WINBINDD_MAX_SIMULTANEOUS_CLIENTS (defined in local.h as 200 currently). Jeremy.
* Remove obsolete file lib/netatalk.c - We now have a vfs moduleJelmer Vernooij2003-02-151-3/+0
|
* Fixed up mutex protection around winbindd logon code. Sync with APP-HEAD.Jeremy Allison2003-01-161-0/+8
| | | | Jeremy.
* Fix for systems that allow more than 65536 open files per process.Jeremy Allison2002-10-221-0/+3
| | | | Jeremy.
* Add a timeout to tdb_lock_bystring(). Ensure we never have more thanJeremy Allison2002-10-041-0/+3
| | | | | MAX_PRINT_JOBS in a queue. Jeremy.
* sync'ing up for 3.0alpha20 releaseGerald Carter2002-09-251-6/+1
|
* sync 3.0 branch with headJelmer Vernooij2002-08-171-1/+13
|
* updated the 3.0 branch from the head branch - ready for alpha18Andrew Tridgell2002-07-151-1/+1
|
* This split the mangling code up to allow for the possibility of multipleAndrew Tridgell2002-04-111-0/+6
| | | | | | mangling implementation, selectable using "mangling method = " in smb.conf It also tidies the interface a little, although it is still nasty.
* Removed MAXSTATUS which was set incorrectly - thus causing tdb traversalJeremy Allison2002-01-141-1/+2
| | | | | | of the connections db on smbd startup. This should fix the Solaris large load bug.... (fingers crossed). Jeremy.
* allow a MAX_DEBUG_LEVEL setting in local.h (or the Makefile)Andrew Tridgell2001-12-061-0/+9
| | | | | | This allows embedded systems to compile out the higher debug levels. It should gain speed as well as reducing the code size. Setting it to 1 saves about 300k of code on my system.
* LIBDIR and LOCKDIR are dynamically configured too.Martin Pool2001-11-191-5/+0
|
* Fixed allocation bug in database prog. Some format fixes.Jeremy Allison2001-11-121-0/+3
| | | | Jeremy.
* - fix handling of 0 last_change_time and must_change_timeAndrew Tridgell2001-10-011-0/+3
| | | | - move the arbitrary 21 day timeout to local.h
* Patch from David_Tiller@ccnotes.ccity.com finally applied now I've thoughtJeremy Allison2001-05-061-0/+5
| | | | | | about it to stop account lockouts with "security=server" mode. Sorry for the delay David. Jeremy.
* Had to add a "pam password change" parameter (defaults to "off") and inlinedJeremy Allison2001-05-021-4/+0
| | | | | | | | | | | the pam password change code to ensure that existing and working password chat scripts don't break with 2.2.1. PAM password changing has to be explicitly requested. Allowed wildcards in pam password change matching (matches password chat script matching). Had to add const (sorry Tim :-) to ms_fnmatch() to stop warnings. Don't worry - the const changes are isolated and don't cause any other warnings :-). Jeremy.
* Ensure correct password change script gets selected --with-pam.Jeremy Allison2001-04-301-0/+4
| | | | Jeremy.
* merge from 2.2Andrew Tridgell2001-04-181-0/+8
|
* this patch does a number of things:Andrew Tridgell2001-03-131-3/+0
| | | | | | | | | | | | | | | - removes SMB_ALIGNMENT. That macro caused all sorts of problems with getting unicode aligned right in sub-protocols (such as SMBtrans and SMBtrans2). I believe the performance reasons for having SMB_ALIGNMENT has gone away with the new variants of the SMB protocol anyway, as newer commands tend to have their own internal alignment. - fix the locations where we set smb_flg2 to absolute values. We must never do this if we want a hope of coping with unicode. - add initial support for unicode on the wire in smbd. Currently enabled using SMBD_USE_UNICODE environment variable.
* don't need shmem any moreAndrew Tridgell2000-07-061-5/+0
|
* - use full_name instead of real_nameAndrew Tridgell2000-05-041-4/+0
| | | | - got rid of guest map code in lpq parser
* got rid of some more old configure tests and includesAndrew Tridgell2000-04-171-5/+0
|
* added the unexpected packet database (unexpected.tdb)Andrew Tridgell2000-01-031-0/+1
| | | | | | | | | | | | this means "nmblookup -S" now always works, even with broken servers the database stores all unexpected replies and these can be accessed by any client. while doing this I cleaned up a couple of functions, and put in place a better trn_id generator. in most places the code got quite a bit simpler due to the addition of simple helper functions. I haven't yet put the code in to take advantage of this for pdc replies - that will be next. Jeremys pdc finding code will then work :)
* Converted most of the functions in lib/util_str.c to smb_ucs2_t equivalents.Jeremy Allison1999-12-291-0/+3
| | | | Jeremy.
* first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell1999-12-131-24/+25
|
* include/local.h:Jeremy Allison1998-11-101-23/+0
| | | | | | | | | | | | | include/smb.h: param/loadparm.c: Made GUEST_SESSSETUP run time selectable. Horror of horrors :-). printing/printing.c: Added J.F.'s latest fix. rpc_parse/parse_misc.c: parse_reg.c: rpcclient/cmd_reg.c: rpcclient/display.c: SGI compiler signed/unsigned issues. smbd/reply.c: Made GUEST_SESSSETUP run time selectable. Horror of horrors :-). utils/testparm.c: Added extra test. Jeremy.
* I talked to Dave Miller and he thinks that we should have TCP_NODELAYAndrew Tridgell1998-11-091-0/+8
| | | | | on by default on OSes that support it, given the network IO pattern that Samba uses. He doesn't think it will cause problems.
* at the interop Isaac (at least I _think_ it was Isaac) said that if aAndrew Tridgell1998-10-211-0/+4
| | | | | | | | | | | | | | | MS client doesn't respond to a oplock break request then we might try resending the request. This morning Sues Win95 machine had this problem (thus forcing me to do something about it!). When starting winword her box refused to answer an oplock break request. I have added code to resend the oplock break request up to 3 times at 10 second intervals before killing the socket. of course, as soon as I did this her box started to behave again so I haven't been able to tell if this fix actually works, but it can't be worse than dropping the socket immediately.
* Upped default MAX_OPEN_FILES to 10000 after conversation with tridge.Jeremy Allison1998-09-301-1/+1
| | | | | As we're only using 1 bit per fd when idle it doesn't matter too much.... Jeremy.
* (Finally) implemented "max open files" as a global smb.conf parameter.Jeremy Allison1998-09-301-0/+11
| | | | | | Sets up the files array correctly - limited by the smb.conf parameter and by the max fd's per process as found by getrlimit(). Jeremy.
* changed the default filesystem type to NTFS (from Samba)Andrew Tridgell1998-09-261-1/+1
| | | | | | | | | | | I've finally changed this because I've found a real effect that this has. Win95 shows long filenames in a directory listing in a dos box only if this is set to NTFS or HPFS (only ones I've found so far anyway). If NTFS poses problems of some kind then we should try HPFS I wonder if this change will trigger any attempts to use ACLs ?
* add a define for SMB_SEARCH_BITS and change comment on FSTYPE_STRINGAndrew Tridgell1998-09-201-2/+2
|
* gto ri of a bunch more #ifdef LARGE_SMB_OFF_T checks by introducing aAndrew Tridgell1998-09-181-0/+5
| | | | | | | SOFF_T() macro for setting an SMB_OFF_T variable also limited mmap based reads to MAX_MMAP_SIZE. We really can't mmap 2^50 bytes due to virtual address space problems.
* moved connection_struct handling code into smbd/conn.c and changed itAndrew Tridgell1998-08-171-6/+0
| | | | to a linked list with bitmap format.
* some cleanups from the conversion of Pipes[] to a linked list. I alsoAndrew Tridgell1998-08-171-3/+0
| | | | | | | | removed most cases where a pnum is used and substituted a pipes_struct*. in files.c I added a offset of 0x1000 to all file handles on the wire. This makes it much less likely that bad parsing will give us the wrong field.
* this checkin gets rid of the global Files[] array and makes it localAndrew Tridgell1998-08-151-8/+7
| | | | | | | in files.c it should now be faily easy to expand the default MAX_OPEN_FILES to many thousands.
* Added the APPLEDOUBLE macro for the name of the directory containingJohn Blair1998-08-131-0/+3
| | | | a file's Macintosh resource fork (normally .AppleDouble under Netatalk).
* this gets smbd compiling and linking correctly with the new layout.Andrew Tridgell1998-08-091-0/+5
|
* merge from the autoconf2 branch to the main branchAndrew Tridgell1998-07-291-6/+0
|