Jeremy Allison
647d65e08b
Bit of a hack job to prevent smbprn.XXX jobs appearing in the queue if the
...
jobid is below the UNIX_JOB_START number.
Jeremy.
(This used to be commit 7ec1c8869d3df9af77ff95942beba34f56a06b73)
2003-02-19 01:43:33 +00:00
Jeremy Allison
4703248a8e
Ensure we return NOSPACE if we can't fast allocate a print job.
...
Jeremy.
(This used to be commit 82cf8aa74794649fb16c336011ca48d549d6abb8)
2003-02-08 01:04:43 +00:00
Jeremy Allison
42edbfe918
Hold the lock for a much shorter time when allocating a new jobid.
...
Jeremy.
(This used to be commit 62e274abbb0ceec90c97c022fa14d96bdf574121)
2003-02-04 23:52:49 +00:00
Jeremy Allison
920287bf6b
More scalable print tdb fixes.
...
Jeremy.
(This used to be commit 7ace900b335e83b447cab63137968806a8e2f4d3)
2003-01-30 23:26:49 +00:00
Andrew Bartlett
27b7e51a3c
Merge from HEAD:
...
- fstring/pstring mixups
- the detection code that found them (disabled)
- a bit of whitespace
- a static
Andrew Bartlett
(This used to be commit 9b70fa868e7d9481f584c83fc4046174e1dedfd9)
2003-01-14 08:53:59 +00:00
Gerald Carter
071af8f007
[merge] make sure to update print queue cache during timeout_processing() to send notify events; CR 1491
...
(This used to be commit f8a915b14d63e4fdb99235053eeb896ef9492068)
2003-01-11 02:38:36 +00:00
Jeremy Allison
545087c060
Don't delete jobs subitted after the lpq time.
...
Jeremy.
(This used to be commit 6cb9f6ccb1fab3ff597f52c931561d52de09e84a)
2003-01-10 01:21:59 +00:00
Andrew Bartlett
634c54310c
Merge from HEAD - make Samba compile with -Wwrite-strings without additional
...
warnings. (Adds a lot of const).
Andrew Bartlett
(This used to be commit 3a7458f9472432ef12c43008414925fd1ce8ea0c)
2003-01-03 08:28:12 +00:00
Jeremy Allison
3999a905e9
Fix debugs for rap mapping. Delete job on map fail.
...
Jeremy.
(This used to be commit 6eb27e4f0dea6027ba9e041348f066c947e751c6)
2002-12-05 22:32:15 +00:00
Jeremy Allison
00a20ce45f
The element in fsp->print_job should be a RAP jobid, not a uint32 RPC
...
jobid. This was causing Win9x client "set name" calls to fail.
Still need one cleanup fix to finish.
Jeremy.
(This used to be commit 6c23d2030ab8dddff4c849903c529f0012b94027)
2002-12-05 04:00:16 +00:00
Gerald Carter
afc5f1aefb
[print notify fixes from APP_HEAD]
...
* 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 f1062e79de8a3046c6e3f22b3d1a4819afe6809b)
2002-11-26 00:46:31 +00:00
Jeremy Allison
de474974ea
Lots of fixes for error paths where tdb_fetch() data need freeing.
...
Found via a post from Arcady Chernyak <Arcady.Chernyak@efi.com>.
Jeremy.
(This used to be commit 5d5762d1787db4392d2dff16024097c638b2d494)
2002-11-23 02:52:36 +00:00
Jeremy Allison
fc2dc328e1
First cut of fix for changenotify on a print server handle. Use the connections tdb
...
with an snum of -1 and a special printername.
Jeremy.
(This used to be commit 06b04380078ad840768a2c5a803f02669f54bc82)
2002-11-10 22:24:00 +00:00
Jeremy Allison
978214b18e
Fix for scalable printing noticed by tpot. Don't loop infinately
...
when holding a mutex.... :-).
Jeremy.
(This used to be commit 7e7b40e0fe1302ae416247c70d8d76bd82ec3474)
2002-11-10 03:00:43 +00:00
Jeremy Allison
72b7cfe4f1
Fix crash bug with overwriting malloced memory.
...
Jeremy.
(This used to be commit 3228730c8311ec6507227f8936318b1d965c1228)
2002-11-07 22:43:54 +00:00
Jeremy Allison
9304248788
Merge of scalable printing code fix... Needs testing.
...
Jeremy.
(This used to be commit d030df76439c72825d68410211e62090438cef54)
2002-11-07 02:15:35 +00:00
Jeremy Allison
a63844e10e
Fix slowdown because of enumerating all print queues on every smbd startup.
...
Jeremy.
(This used to be commit 6efd17ef78ebcfed1130312fa019d674e4663a00)
2002-10-31 23:41:00 +00:00
Jeremy Allison
0e7938ab5d
Fix problem where an fd would be left open for every printer queue.
...
Jeremy.
(This used to be commit e240c7a428659bce392d47f2eda16bdcf32863c1)
2002-10-26 00:29:04 +00:00
Gerald Carter
6ce3e3b10c
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 743f2b8025effe57d8f075ff14a9357123c507a8)
2002-10-21 20:11:12 +00:00
Jeremy Allison
452baba8cb
Never do a ZERO_STRUCT on a structure in a linked list, it's dumb :-).
...
Jeremy.
(This used to be commit 20986489f4736820a4981c6aa0eecccf169f0170)
2002-10-16 20:09:51 +00:00
Jeremy Allison
64876b9fb8
SMB_ASSERT to check list terminates.
...
Jeremy.
(This used to be commit bf3b0ef56168aff9b1bd5760b595f8951d434861)
2002-10-16 01:28:42 +00:00
Jeremy Allison
3665777a5b
Add a timeout to tdb_lock_bystring(). Ensure we never have more than
...
MAX_PRINT_JOBS in a queue.
Jeremy.
(This used to be commit 9fe3c0b90d4bff2217e3cb5a34b4683ca314c06e)
2002-10-04 22:53:18 +00:00
Gerald Carter
a834a73e34
sync'ing up for 3.0alpha20 release
...
(This used to be commit 65e7b5273bb58802bf0c389b77f7fcae0a1f6139)
2002-09-25 15:19:00 +00:00
Jelmer Vernooij
b2edf254ed
sync 3.0 branch with head
...
(This used to be commit 3928578b52cfc949be5e0ef444fce1558d75f290)
2002-08-17 17:00:51 +00:00
Andrew Tridgell
e90b652848
updated the 3.0 branch from the head branch - ready for alpha18
...
(This used to be commit 03ac082dcb375b6f3ca3d810a6a6367542bc23ce)
2002-07-15 10:35:28 +00:00
Gerald Carter
2699f9b9df
printing merge from HEAD
...
(This used to be commit d3aed37dd87d425f51bcdc4e5151f0b0fe8f9c6b)
2002-04-22 18:48:45 +00:00
Jeremy Allison
e67f1be9f0
Ensure we don't do lp_servicename()'s in tdb traverse as this
...
allocates lots of memory.
Jeremy.
(This used to be commit fbc8c6a1096ec829f48b403239f105065bf155b1)
2002-03-20 22:39:30 +00:00
Jeremy Allison
60a7d07d63
Print queue entries *must* have queue names, not numbers - numbers are
...
not identical between different smbds (mr potter, come here and take
your medicine.... :-).
Jeremy.
(This used to be commit 230941d2fbb746d39c00e482e7f600c68aa45efa)
2002-03-20 21:55:57 +00:00
Jeremy Allison
72eb7dbd40
Merge in JohnR's page count fixes.
...
Jeremy.
(This used to be commit 2e3133fbe5531b9bbc9bf46a04b27fa58e555f5a)
2002-03-19 02:35:12 +00:00
Gerald Carter
65c007b583
syncing up printing code with SAMBA_2_2 (already done some merges
...
in the reverse).
* add in new printer change notify code from SAMBA_2_2
* add in se_map_standard() from 2.2 in _spoolss_open_printer_ex()
* sync up the _print_queue_struct in smb.h (why did someone change the
user/file names in fs_user/fs_file (or vice-versa) ? )
* sync up some cli_spoolss_XXX functions
(This used to be commit 5760315c1de4033fdc22684c940f18010010924f)
2002-03-15 08:14:10 +00:00
Tim Potter
57bd576445
getpid() -> sys_getpid()
...
(This used to be commit a3cea5e9ae3b53ecbc45e61a39cbce0ca1b916aa)
2002-03-14 01:53:04 +00:00
Jeremy Allison
024e69da0b
Fix for machines that have their time changed forward, then back. Ensure
...
that any cached lpq information gathered during that time doesn't
stay around for longer than 1 hour.
Jeremy.
(This used to be commit 39fca711a5cf15a03d6c79639b202712d1749a64)
2002-03-07 21:51:59 +00:00
Jeremy Allison
2ff9390245
Fixup the sending of printer change messages from job changes.
...
Jeremy.
(This used to be commit 28d4e7a3e2bd8f15ef807b821e4300a72bbc6904)
2002-02-26 03:12:09 +00:00
Tim Potter
2f8452fd49
Merge of printing performance fixes from appliance.
...
(This used to be commit c8dc59dfe877f63bea6976b7d7fd448e0c8722ba)
2002-02-25 23:18:05 +00:00
Tim Potter
cd68afe312
Removed version number from file header.
...
Changed "SMB/Netbios" to "SMB/CIFS" in file header.
(This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
2002-01-30 06:08:46 +00:00
Jeremy Allison
9e007457e4
Removed MAXSTATUS which was set incorrectly - thus causing tdb traversal
...
of the connections db on smbd startup. This should fix the Solaris large
load bug.... (fingers crossed).
Jeremy.
(This used to be commit 5b2b9c25af28543e67762805d1387524cbb6c39d)
2002-01-14 19:34:28 +00:00
Jeremy Allison
91536cc901
Fixed all uses of tdb_fetch/store/_int to use explicit int32 little endian
...
in tdb's. All except winbindd_idmap.... Hmmmmmm.
Jeremy.
(This used to be commit ec71f1732b6b27bd2d65b250a6f3720a235dc38d)
2002-01-09 04:13:30 +00:00
Jeremy Allison
eca99f5c22
Fixed nasty cast of tdb_delete in traversals.
...
Jeremy.
(This used to be commit a0cdec3acc82d1ce0292fadd4b8dac23638450f3)
2002-01-03 22:48:48 +00:00
Martin Pool
df28dee653
Factor out a broadcast_printer_notify() routine.
...
(This used to be commit d32598c953e7a500f707a02608c44203bc5941ec)
2001-12-21 00:37:09 +00:00
Tim Potter
7cb202e33c
Fixed uninitialised variable warning.
...
(This used to be commit 5095941dcb312d75c232d15232d5998ca05b632f)
2001-12-18 05:08:48 +00:00
Jeremy Allison
105f8a1a0f
Use print_queue_length() by preference if we don't need a queue
...
as it doesn't do a traversal.
Jeremy.
(This used to be commit 4bf4ee3f14a690592fa2e1b800fc0344522e6b30)
2001-12-05 02:11:03 +00:00
Jeremy Allison
5472638730
Improved efficiency of enumerating print queue's under a particular
...
extreme condition...
Jeremy.
(This used to be commit 425bb0f40526b4eb17a3033892ca907b1d5293a4)
2001-12-05 00:54:33 +00:00
Jeremy Allison
ca4c584fb5
Optimisation to send only to correct processid.
...
Jeremy
(This used to be commit 3807c747a4522c719fe67b876e4a3bd92bffcf7f)
2001-10-16 23:52:14 +00:00
Jean-François Micouleau
3f1d100842
very simple asynchronous "lpq" thread patch
...
To speed up operations with the lpq command, it's now run in a separate
asynchronous process.
Opening the Printers folder on NT is now fast ;-) I think even faster than
with a ** server
Jeremy, you should look at that patch to include it in 2.2.3
J.F.
(This used to be commit 8ef9dff3074e7979579ce66a204e8ec7bf62a587)
2001-10-16 23:16:00 +00:00
Tim Potter
dc1fc3ee8e
Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.
...
(This used to be commit 2d0922b0eabfdc0aaf1d0797482fef47ed7fde8e)
2001-10-02 04:29:50 +00:00
Andrew Tridgell
9a9ac2739b
got rid of USE_TDB_MMAP_FLAG as its not needed any more
...
(This used to be commit c26e0d3f27a05ecc8bd2390f9aab7f9451524e47)
2001-09-06 22:08:19 +00:00
Andrew Tridgell
19fea3242c
the next stage in the NTSTATUS/WERROR change. smbd and nmbd now compile, but the client code still needs some work
...
(This used to be commit dcd6e735f709a9231860ceb9682db40ff26c9a66)
2001-09-04 07:13:01 +00:00
Andrew Tridgell
fbc1f326f4
more NTSTATUS/WERROR conversion
...
(This used to be commit ad648c5cd8ebe4be8304379117f403d7673dcbc8)
2001-09-03 10:38:13 +00:00
Tim Potter
d1f53e4044
Fixed detection of CUPS. We need to check for the presence of the cups
...
header files as well as libcups.
(This used to be commit 2dbb41a7b88e7fad63579111aaab4a1cd28c54d5)
2001-08-23 19:06:20 +00:00
Jeremy Allison
4b2016305b
Merge in the NT drivers changes from 2.2.
...
Jeremy.
(This used to be commit a3781ad38ff6c70238e7e9b83324477e5c9780d5)
2001-08-10 19:38:53 +00:00