Tim Prouty
c6f1f055fd
s3 oplocks: Make the level2 oplock contention API more granular
...
This replaces release_level2_oplocks_on_change with
contend_level2_oplock_begin/end in order to contend level2 oplocks
throughout an operation rather than just at the begining. This is
necessary for some kernel oplock implementations, and also lays the
groundwork for better correctness in Samba's standard level2 oplock
handling. The next step for non-kernel oplocks is to add additional
state to the share mode lock struct that prevents any new opens from
granting oplocks while a contending operation is in progress.
All operations that contend level 2 oplocks are now correctly spanned
except for aio and synchronous writes. The two write paths both have
non-trivial error paths that need extra care to get right.
RAW-OPLOCK and the rest of 'make test' are still passing with this
change.
2009-02-09 23:47:45 -08:00
Tim Prouty
9c1310fa6a
s3 oplocks: Differentiate between releasing an oplock vs. downgrading to Level 2 for kernel oplocks
...
Pass in an extra argument when releasing an oplock so kernel oplock
implementations can support downgrading from Level 1 to Level 2.
2009-02-09 23:47:44 -08:00
Tim Prouty
122dbbf00a
s3 vfs: Add a destructor to the fsp extension data API
...
I'm not certain if the dummy pointer is needed in struct vfs_fsp_data,
but I added it to be consistent with the comment below.
2009-02-09 23:46:12 -08:00
Günther Deschner
73c603562f
s3-spoolss: remove old spoolss_ScheduleJob.
...
Guenther
2009-02-09 22:49:10 +01:00
Günther Deschner
43463fcc1e
s3-spoolss: remove old spoolss_AddJob.
...
Guenther
2009-02-09 22:48:07 +01:00
todd stecher
54c51a66e3
S3: New module interface for SMB message statistics gathering
...
This changelist allows for the addition of custom performance
monitoring modules through smb.conf. Entrypoints in the main message
processing code have been added to capture the command, subop, ioctl,
identity and message size statistics.
2009-02-09 13:23:44 -08:00
Günther Deschner
a734c85c28
s3-spoolss: remove old rpccli_spoolss_routerreplyprinter.
...
Guenther
2009-02-09 19:12:27 +01:00
Günther Deschner
3b4bf2f8a9
s3-spoolss: remove old spoolss_ReplyClosePrinter.
...
Guenther
2009-02-09 19:10:37 +01:00
Günther Deschner
d87891ea3e
s3-spoolss: remove old spoolss_AddPrintProcessor.
...
Guenther
2009-02-09 19:09:09 +01:00
Jelmer Vernooij
0afa0ab442
Revert "s3/s4: Move CONST_DISCARD into lib/util so it's available from s3 and s4"
...
lib/util already has discard_const_p.
This reverts commit 0cb430c22e
.
2009-02-09 17:48:30 +01:00
Günther Deschner
4d78ece657
s3-spoolss: move PRINTER_ENUM_ICONMASK to IDL.
...
Guenther
2009-02-09 15:59:04 +01:00
Günther Deschner
c94c777d9c
s3-spoolss: use PRINTER_ENUM_NAME and remove double enum define.
...
Guenther
2009-02-09 15:59:04 +01:00
Günther Deschner
ec302a1cfe
s3-spoolss: remove PRINTER_CHANGE* flags now defined in IDL.
...
Guenther
2009-02-09 15:59:04 +01:00
Günther Deschner
d78fd19547
s3-spoolss: remove old _spoolss_FindClosePrinterNotify.
...
Guenther
2009-02-09 13:03:23 +01:00
Günther Deschner
03ae7fc134
s3-spoolss: remove old _spoolss_DeletePrinterDriverEx.
...
Guenther
2009-02-09 12:34:04 +01:00
Günther Deschner
763fe063d2
s3-spoolss: remove old spoolss_DeletePrinterDriver.
...
Guenther
2009-02-09 12:34:03 +01:00
Günther Deschner
8b5729f31c
s3-spoolss: remove old _spoolss_DeletePrinterKey.
...
Guenther
2009-02-09 12:34:02 +01:00
Günther Deschner
bed65d86ac
s3-spoolss: remove old _spoolss_DeletePrinterData.
...
Guenther
2009-02-09 12:34:02 +01:00
Günther Deschner
fe6d62fb9f
s3-spoolss: remove old _spoolss_DeletePrinterDataEx.
...
Guenther
2009-02-09 12:34:01 +01:00
Günther Deschner
8f130d5479
s3-spoolss: remove SPOOLSS_DELETEPRINTERDRIVEREX flags now defined in IDL.
...
Guenther
2009-02-09 12:33:40 +01:00
Günther Deschner
8cc60bf978
s3-spoolss: remove old _spoolss_GetForm.
...
Guenther
2009-02-09 10:43:15 +01:00
Günther Deschner
894d05bc41
s3-spoolss: restore delete_a_form().
...
Guenther
2009-02-09 10:42:46 +01:00
Günther Deschner
c0e3b195c8
s3-spoolss: remove old _spoolss_SetForm.
...
Guenther
2009-02-09 10:42:39 +01:00
Günther Deschner
9ef58a9196
s3-spoolss: use pidl for _spoolss_SetForm.
...
Guenther
2009-02-09 10:42:33 +01:00
Günther Deschner
fac7ed3df1
s3-spoolss: remove old spoolss_AddForm.
...
Guenther
2009-02-09 10:42:19 +01:00
Günther Deschner
3a1f9411e5
s3-spoolss: use pidl for spoolss_AddForm.
...
Guenther
2009-02-09 10:42:12 +01:00
Kai Blin
c3b9b6c8aa
async_sock: Use unix errnos instead of NTSTATUS
...
This also switches wb_reqtrans to use wbcErr instead of NTSTATUS as it would
be pointless to convert to errno first and to wbcErr later.
2009-02-09 08:36:08 +01:00
Volker Lendecke
3a4c8cd492
Make prs_struct->out_data.current_pdu dynamically allocated
...
Another 4k per open pipe
2009-02-08 13:53:50 +01:00
Volker Lendecke
51dc7b9d82
Make current_in_pdu in pipes_struct allocated
...
This makes an open pipe about 4K cheaper
2009-02-07 19:25:34 +01:00
Günther Deschner
3d6860018f
s3-spoolss: remove old _spoolss_WritePrinter.
...
Guenther
2009-02-07 10:20:56 +01:00
Günther Deschner
04c971dc6c
s3-spoolss: remove old _spoolss_DeleteForm.
...
Guenther
2009-02-07 01:52:29 +01:00
Günther Deschner
b56c5bf510
s3-spoolss: rework some form functions and add form_by_string functions.
...
Guenther
2009-02-07 01:52:28 +01:00
Günther Deschner
b8cd20cd5c
s3-spoolss: use rpccli_spoolss_DeleteForm.
...
Guenther
2009-02-07 01:52:28 +01:00
Günther Deschner
100aad0ddf
s3-spoolss: remove old _spoolss_EndDocPrinter.
...
Guenther
2009-02-06 21:41:23 +01:00
Günther Deschner
2a5ae9e47b
s3-spoolss: remove old _spoolss_AbortPrinter.
...
Guenther
2009-02-06 21:40:43 +01:00
Günther Deschner
eb542ef630
s3-spoolss: remove old _spoolss_EndPagePrinter.
...
Guenther
2009-02-06 21:39:56 +01:00
Günther Deschner
f8582f18ec
s3-spoolss: remove old _spoolss_StartPagePrinter.
...
Guenther
2009-02-06 21:39:08 +01:00
Günther Deschner
69577cacfe
s3-spoolss: remove old _spoolss_DeletePrinter.
...
Guenther
2009-02-06 21:30:49 +01:00
Günther Deschner
88f09a8353
s3-spoolss: remove old _spoolss_ClosePrinter.
...
Guenther
2009-02-06 18:59:06 +01:00
Günther Deschner
e11fa4cc33
s3-spoolss: prepare to use generated spoolss.
...
Guenther
2009-02-06 18:54:51 +01:00
Günther Deschner
3accf9e80f
s3: use pidl to pull a KRB5_EDATA_NTSTATUS.
...
Guenther
2009-02-06 10:32:49 +01:00
Karolin Seeger
3f9daf434a
s3/libads: Change "ldap ssl:ads" parameter to "ldap ssl ads".
...
Karolin
2009-02-05 15:55:14 +01:00
Günther Deschner
ef098bd621
s3-lsa: move remaining lsa policy access_mask defines to idl.
...
Guenther
2009-02-05 01:05:09 +01:00
Günther Deschner
e28a806a6b
s3-parsing: remove a lot of unused structures and their hand marshalling.
...
Guenther
2009-02-05 00:48:50 +01:00
Günther Deschner
8450e6677b
s3-eventlog: w00t! remove last traces of old eventlog rpc marshalling.
...
spoolss, I'm coming!
Guenther
2009-02-04 22:51:47 +01:00
Günther Deschner
a63d4c5ed1
s3-eventlog: remove old eventlog server.
...
Guenther
2009-02-04 22:51:39 +01:00
Günther Deschner
d7e2384dba
s3-eventlog: remove fixup_eventlog_entry.
...
Guenther
2009-02-04 22:51:31 +01:00
Günther Deschner
8b126e942d
s3-eventlog: remove write_eventlog_tdb.
...
Guenther
2009-02-04 22:51:23 +01:00
Günther Deschner
7ade5cf776
s3-eventlog: remove old hand marshalling for eventlog read call.
...
Guenther
2009-02-04 22:50:52 +01:00
Günther Deschner
64e3a90530
s3-eventlog: make can_write_to_eventlog static.
...
Guenther
2009-02-04 22:49:51 +01:00