summaryrefslogtreecommitdiff
path: root/source3/printing/printing.c
AgeCommit message (Collapse)AuthorFilesLines
2003-03-01Ensure added jobs increment total_jobs.Jeremy Allison1-0/+6
Jeremy. (This used to be commit d29c6853dd0c43825b3775020076f34faa5cd329)
2003-02-19Bit of a hack job to prevent smbprn.XXX jobs appearing in the queue if theJeremy Allison1-9/+14
jobid is below the UNIX_JOB_START number. Jeremy. (This used to be commit e8a9bf67cbe5b3e33f99e6793fe4ec445d6e8819)
2003-02-08Ensure we return NOSPACE if we can't fast allocate a print job.Jeremy Allison1-2/+7
Jeremy. (This used to be commit 9cd29f2bacd7c61f82f799e97f93d88f98f9ece6)
2003-02-04Hold the lock for a much shorter time when allocating a new jobid.Jeremy Allison1-54/+67
Jeremy. (This used to be commit 0b5a0fec826475c6282177bae88dcdad23c2825d)
2003-01-30More scalable print tdb fixes.Jeremy Allison1-13/+23
Jeremy. (This used to be commit fa8647eb208a971063039c24da849021c5e25267)
2003-01-11[merge] make sure to updatre print queue cache during timeout_processing() ↵Gerald Carter1-7/+16
to send notify events; CR 1491 (This used to be commit 142c5029c701e7a82074e301278846c02843f46f)
2003-01-10Fix lpq_cache time check (missed from yesterday).Jeremy Allison1-4/+4
Jeremy. (This used to be commit 21c8acd25ac93f7ea5b77ef6005e3789a71ca50f)
2003-01-02BIG patch...Andrew Bartlett1-6/+6
This patch makes Samba compile cleanly with -Wwrite-strings. - That is, all string literals are marked as 'const'. These strings are always read only, this just marks them as such for passing to other functions. What is most supprising is that I didn't need to change more than a few lines of code (all in 'net', which got a small cleanup of net.h and extern variables). The rest is just adding a lot of 'const'. As far as I can tell, I have not added any new warnings - apart from making all of tdbutil.c's function const (so they warn for adding that const string to struct). Andrew Bartlett (This used to be commit 92a777d0eaa4fb3a1c7835816f93c6bdd456816d)
2002-12-05Fix debugs for rap mapping. Delete job on map fail.Jeremy Allison1-2/+5
Jeremy. (This used to be commit 631d6066981c58f61d7fed4376b0254544eede84)
2002-12-05The element in fsp->print_job should be a RAP jobid, not a uint32 RPCJeremy Allison1-4/+24
jobid. This was causing Win9x client "set name" calls to fail. Still need one cleanup fix to finish. Jeremy. (This used to be commit 15f0bad1fc72ff44cd195d34fd530c25a739f42d)
2002-11-26[print notify fixes from APP_HEAD]Gerald Carter1-279/+35
* fixing change notify on print server handle * adding change notify support into smbcontrol for sending comment changes, etc... All part of CR 1159/1160 (This used to be commit 256d8c27cdc6f802f3bfba44593b07014f6ae10a)
2002-11-23Lots of fixes for error paths where tdb_fetch() data need freeing.Jeremy Allison1-7/+14
Found via a post from Arcady Chernyak <Arcady.Chernyak@efi.com>. Jeremy. (This used to be commit 19f86f1f72aca924e9e320e20a175b5d21de45ad)
2002-11-10First cut of fix for changenotify on a print server handle. Use the ↵Jeremy Allison1-43/+80
connections tdb with an snum of -1 and a special printername. Jeremy. (This used to be commit 940b04ddfa87acc939911e3fe76496e3c4675632)
2002-11-10Fix for scalable printing noticed by tpot. Don't loop infinatelyJeremy Allison1-13/+36
when holding a mutex.... :-). Jeremy. (This used to be commit c206643baaae64cef38f2f74e46337d35a489ca9)
2002-11-07Fix crash bug with overwriting memory.Jeremy Allison1-5/+3
Jeremy. (This used to be commit 9b08b4e4c24290e5d90a7cc2dc442cb82e73df28)
2002-11-07Merge of scalable printing code fix... Needs testing.Jeremy Allison1-0/+248
Also tidied up some of Richard's code (I don't think he uses the compiler flags -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual like I do :-) :-). Jeremy. (This used to be commit 10024ed06e9d91f24fdc78d59eef2f76bf395438)
2002-10-31Fix slowdown because of enumerating all print queues on every smbd startup.Jeremy Allison1-14/+11
Jeremy. (This used to be commit d05b147fb3f32031a202cf61703dc2fd969f4617)
2002-10-26Fix problem where an fd would be left open for every printer queue.Jeremy Allison1-0/+27
Jeremy. (This used to be commit 997c234e15a5f8d742320359a53e15a27661d456)
2002-10-21merge from samba_3_0Gerald Carter1-11/+0
removed the following parameters * postscript * printer driver * printer driver location * printer driver file also removed the get_a_printer_driver_9x_compatible() function (This used to be commit e7dd8cf903144393b1362719d75430a2ee7e5f27)
2002-10-16Never do a ZERO_STRUCT on a structure in a linked list, it's dumb :-).Jeremy Allison1-1/+3
Jeremy. (This used to be commit 0d989a911d742ed5eeb874f5b8350b0931f3d9db)
2002-10-16SMB_ASSERT to check list terminates.Jeremy Allison1-0/+3
Jeremy (This used to be commit 25f6a9247e88a94cbacdc8fb06dc0d13c53d69bd)
2002-10-04Add a timeout to tdb_lock_bystring(). Ensure we never have more thanJeremy Allison1-7/+7
MAX_PRINT_JOBS in a queue. Jeremy. (This used to be commit bb58a08af459b4abae9d53ab98c15f40638ce52b)
2002-09-25merge from APP_HEADGerald Carter1-8/+32
(This used to be commit 930c6710fe076b52ad21addf5fcda834f85e15a9)
2002-09-24Hold lock on NEXTJOB record for a very short time. Jerry needs to add codeJeremy Allison1-29/+52
to make this rebust w.r.t. stored devicemodes. Jeremy. (This used to be commit f93a008f09acda2ddaff9857f2fe0c86948539d1)
2002-09-18printjob merge from APP_HEAD regarding device modesGerald Carter1-26/+130
(This used to be commit aa52351384abace54a89c9fbfa5e4c31a8464c91)
2002-09-10AbortPrinter() fix merged from APP_HEAD.Gerald Carter1-3/+31
(This used to be commit 97ede49e1271fa00c6ffdf9e6e3c2330ea935461)
2002-09-05Remove donotify as notifies are cheap now.Jeremy Allison1-11/+11
Jeremy. (This used to be commit 78585de5811d10bcca156e296c7dd51eabe5d626)
2002-09-04Added better error code on out of space. Removed total jobs check - notJeremy Allison1-48/+1
applicable any more. Jeremy. (This used to be commit 8828e2ea3c668aab6cda1b4be9a7e4ce1c23ca81)
2002-09-04Add bcast_msg_flags to connection struct. Allows sender to filter whenJeremy Allison1-12/+18
sending broadcast messages. Also initial cut-down of printing notify messages (not yet finished). Jeremy. (This used to be commit aca333719695b278843c59e1c6eb07d6655fd59c)
2002-08-27Move to reference counting rather than lock counting.Jeremy Allison1-35/+57
Jeremy. (This used to be commit e7b48224c4f8c6063e1dd850cc91f5488e65a48d)
2002-08-27Handle locking correctly.Jeremy Allison1-2/+6
Jeremy. (This used to be commit 4208f027cff77142df4f984a4a8985afbe30a4f1)
2002-08-27Allow us to "lock" printer tdb entries in memory to stop them beingJeremy Allison1-18/+61
re-used as cache. Jeremy. (This used to be commit 6f901e479dd7a0b9d1395aad5b8ef028c0514fec)
2002-07-22Merge from APPLIANCE_HEAD.Tim Potter1-1/+1
(This used to be commit 825cdc49dbc3e6b9d08b8e722c82cc09e2479fa1)
2002-07-22Ensure we're root before opening a printer backend tdb.Jeremy Allison1-0/+4
Jeremy. (This used to be commit 48ab4ae4221ed0be34c269e01a4e8b6bc93f87d7)
2002-07-17Gone back to explicit queue number passing as snum - removed encoding ofJeremy Allison1-249/+118
queueid in job number. This means we must have an internal tdb to store mapping from 16 bit RAP jobid's to 32 bit RPC jobids. Jeremy. (This used to be commit 4ff64f69706cc94d5dba7762754d00790c476963)
2002-07-17Lanman print jobs are *16* bits, not 32. arggggh. Map them....Jeremy Allison1-0/+79
Jeremy. (This used to be commit 2b06fd305be10fa8a8629adb4a99ccd3960786da)
2002-07-16Put printing tdbs in a subdirectory to prevent name collisions.Jeremy Allison1-1/+6
Jeremy. (This used to be commit b013b9437557f2d427e4b646b49ad7d99e94c164)
2002-07-11*Experimental* new large-scaling printer code. Splits printing.tdb intoJeremy Allison1-138/+396
a separate tdb per printer, but only keeps (currently one) tdb open at a time (although this is easily changed by changing a #define). Needs scalability testing with large numbers of printers now.... Jeremy. (This used to be commit b0909cfa14fc7ef29d2b98b56d52723570da782a)
2002-07-01used findstatic.pl to make some variables static and remove some deadAndrew Tridgell1-1/+1
code (This used to be commit 91ad9041e9507d36eb3f40c23c5d4df61f139ef0)
2002-06-28Shut down printing tdb correctly - this will be more important when I goJeremy Allison1-3/+17
to a tdb per-queue for scalability. Jeremy. (This used to be commit e808eb2758ff4ad1eed7b50a02865b87ba0c068e)
2002-06-28Proper merge of all the working printing stuff from APPLIANCE_HEAD.Jeremy Allison1-158/+205
Now let's keep this in sync ! Jeremy. (This used to be commit 3603cd4947df2c10df604447dc542932cb9e5d5a)
2002-06-24printing merge from SAMBA_2_2. Ther server code looks to be in sync now.Gerald Carter1-10/+10
Mostly formatting and s/free/SAFE_FREE/g changes with the two exceptions being * John driver init changes * Tim's printer enumeration bug fix (This used to be commit f7536762863811f96364e8acd3716bdb7d665bbf)
2002-06-21Format tidyup before I start working on scalability fixes (one file perJeremy Allison1-74/+134
print queue). Jeremy. (This used to be commit 6544a500d0696c9fe1f1abc067a8b963a0e2b8da)
2002-05-10Ok, ok, I was too impatient...Jim McDonough1-2/+2
(This used to be commit af35c5a57ca5544441bd82b695d878f388cd5e73)
2002-05-10Fix build. Changed MSG_PRINTER_UPDATE to MSG_PRINTER_DRVUPGRADE.Jim McDonough1-2/+2
Jeremy, please verify that this was ok... (This used to be commit f191563c7f1cfb7250327333a9470edc4dbedde1)
2002-04-19When opening a tdb fails - don't expect to be able to do tdb_errstr ! (Doh!).Jeremy Allison1-2/+2
Jeremy. (This used to be commit 9209d8e718e860e6a58937376cbb437b6b7adbbb)
2002-04-13when background printing wasn't enabled printing was completely brokenAndrew Tridgell1-1/+4
as the pid was 0 (This used to be commit f16033635f5125758a3d2c3b0780d5bd2bd7bdbd)
2002-03-20Ensure we don't do lp_servicename()'s in tdb traverse as thisJeremy Allison1-5/+7
allocates lots of memory. Jeremy. (This used to be commit fbc8c6a1096ec829f48b403239f105065bf155b1)
2002-03-20Print queue entries *must* have queue names, not numbers - numbers areJeremy Allison1-7/+30
not identical between different smbds (mr potter, come here and take your medicine.... :-). Jeremy. (This used to be commit 230941d2fbb746d39c00e482e7f600c68aa45efa)
2002-03-19Merge in JohnR's page count fixes.Jeremy Allison1-4/+31
Jeremy. (This used to be commit 2e3133fbe5531b9bbc9bf46a04b27fa58e555f5a)