CVS update: samba/source/printing

John Reilly jreilly at au2.samba.org
Wed Jan 24 05:49:23 EST 2001


Date:	Wednesday January 24, 2001 @ 5:49
Author:	jreilly

Update of /data/cvs/samba/source/printing
In directory samba:/tmp/cvs-serv13075/printing

Modified Files:
      Tag: APPLIANCE_HEAD
	printing.c 
Log Message:
Added new parameter "total print jobs" to limit the total number of print jobs across all
queues. Currently individual queues are limited by "max print jobs".

- include/proto.h: the usual update

- param/loadparm.c: added global "total print jobs" struct entry, iTotalPrintJobs to the
    Global struct, and defaulted the value to 0 (i.e. no limit).

- printing/printing.c:
    added total_jobs to traverse_struct struct
    changed traverse_fn_delete() to count all jobs while it deletes jobs from a queue
    changed print_queue_update() to save total print jobs in "INFO/total_jobs"
    added get_total_jobs() to retrieve total print jobs from printing.tdb
    changed print_job_start() to check total print jobs limit before accepting the job

More to come wrt sending better errors to the user e.g. Print Queue Full" vs disk full.

JohnR





More information about the samba-cvs mailing list