summaryrefslogtreecommitdiffstats
path: root/source/param/loadparm.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-10-11 02:26:50 +0000
committerJeremy Allison <jra@samba.org>2000-10-11 02:26:50 +0000
commitbd9d5edb9ecd0f59603bd6a402bb9415a6e4d8fc (patch)
treef6a17c9fd6532c9821d4b3e707f6fd099494cbe2 /source/param/loadparm.c
parentf82e89be7c3720f4aaaaafb4cbcc4bf3d4d44a4c (diff)
downloadsamba-bd9d5edb9ecd0f59603bd6a402bb9415a6e4d8fc.tar.gz
samba-bd9d5edb9ecd0f59603bd6a402bb9415a6e4d8fc.tar.xz
samba-bd9d5edb9ecd0f59603bd6a402bb9415a6e4d8fc.zip
Fix for growing printing.tdb by adding check on job creation.
This also updates the printing.tdb db version to 2. Jeremy.
Diffstat (limited to 'source/param/loadparm.c')
-rw-r--r--source/param/loadparm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/param/loadparm.c b/source/param/loadparm.c
index 09ecdf83fa5..bad2ad2fdb9 100644
--- a/source/param/loadparm.c
+++ b/source/param/loadparm.c
@@ -316,6 +316,7 @@ typedef struct
char *szVfsObjectFile;
char *szVfsOptions;
int iMinPrintSpace;
+ int iMaxPrintJobs;
int iWriteCacheSize;
int iCreate_mask;
int iCreate_force_mode;
@@ -429,6 +430,7 @@ static service sDefault = {
NULL, /* vfs object */
NULL, /* vfs options */
0, /* iMinPrintSpace */
+ 1000, /* iMaxPrintJobs */
0, /* iWriteCacheSize */
0744, /* iCreate_mask */
0000, /* iCreate_force_mode */
@@ -793,6 +795,7 @@ static struct parm_struct parm_table[] = {
{"Printing Options", P_SEP, P_SEPARATOR},
+ {"max print jobs", P_INTEGER, P_LOCAL, &sDefault.iMaxPrintJobs, NULL, NULL, FLAG_PRINT},
{"load printers", P_BOOL, P_GLOBAL, &Globals.bLoadPrinters, NULL, NULL, FLAG_PRINT},
{"printcap name", P_STRING, P_GLOBAL, &Globals.szPrintcapname, NULL, NULL, FLAG_PRINT},
{"printcap", P_STRING, P_GLOBAL, &Globals.szPrintcapname, NULL, NULL, 0},
@@ -1578,6 +1581,7 @@ FN_LOCAL_INTEGER(_lp_force_dir_security_mode, iDir_Security_force_mode)
FN_LOCAL_INTEGER(lp_max_connections, iMaxConnections)
FN_LOCAL_INTEGER(lp_defaultcase, iDefaultCase)
FN_LOCAL_INTEGER(lp_minprintspace, iMinPrintSpace)
+FN_LOCAL_INTEGER(lp_maxprintjobs, iMaxPrintJobs)
FN_LOCAL_INTEGER(lp_printing, iPrinting)
FN_LOCAL_INTEGER(lp_oplock_contention_limit, iOplockContentionLimit)
FN_LOCAL_INTEGER(lp_write_cache_size, iWriteCacheSize)