Michael Adam
58fc61217d
s3:registry: replace typedef "REGSUBKEY_CTR" by "struct regsubkey_ctr"
...
This paves the way for hiding the typedef and the implementation from the
surface.
Michael
2009-02-26 13:22:51 +01:00
Michael Adam
b56f449d6b
Revert "Fix a O(n^2) algorithm in regdb_fetch_keys()"
...
This reverts commit a13f065bad
.
This fix is reverted, because the speedup is going to move
further down into reg_objects.c. The unsorted list of subkey names
is going to be indexed: This O(n^2) search bites us in more places.
This re-establishes the abstraction of reg_objects.c.
Michael
2009-02-26 13:22:51 +01:00
Volker Lendecke
6cdcfa3fc1
Remove a temporary debug message -- sorry
2009-02-26 13:26:12 +01:00
Günther Deschner
44ceff4d01
s3-spoolss: fix search_notify(). sorry...
...
Guenther
2009-02-26 13:19:24 +01:00
Günther Deschner
98ca5b04ba
s3: re-run make samba3-idl.
...
Guenther
2009-02-26 13:17:23 +01:00
Günther Deschner
54b529a44e
s3-spoolss: job status defines moved to IDL.
...
Guenther
2009-02-26 13:17:23 +01:00
Günther Deschner
76ae2022ad
spoolss: add spoolss_JobStatus.
...
Guenther
2009-02-26 13:17:23 +01:00
Günther Deschner
3e25d3bb15
s3-spoolss: remove some unused defines and structs.
...
Guenther
2009-02-26 13:17:22 +01:00
Stefan Metzmacher
d3ac11c64a
s4:heimdal_build: correrctly switch closefrom() and get/setprogname() replacements on and off
...
metze
2009-02-26 13:14:26 +01:00
Volker Lendecke
a777b4d501
Convert open_socket_out to tevent_req
2009-02-26 13:04:34 +01:00
Volker Lendecke
408cde8fca
Add tevent_req helpers to includes.h
2009-02-26 13:04:34 +01:00
Volker Lendecke
4d22554e98
Add tevent_ntstatus
2009-02-26 13:04:33 +01:00
Michael Adam
42b8d6b308
s3:net: wrap net conf import into one big transaction
...
This speeds up "net conf import" of a file with 2000 shares
from 11 minutest to 1m50s on my box.
Michael
2009-02-26 11:05:23 +01:00
Michael Adam
bd121b532c
s3:libsmbconf: add transactions to the libsmbconf api
...
This is useful for wrapping higher level aggregate operations
in transactions. The text backend implementations just return
WERR_OK, the registry backend implementatoins use the
regdb_transaction_start|commit|cancel routines just added.
Michael
2009-02-26 11:05:23 +01:00
Michael Adam
9f97674ef7
s3:registry: wrap deletekey_recursive in one big transaction.
...
This speeds up "net conf drop" with 2000 shares on my box from
4m40s to 1m50s, leaving virtually only cpu load.
Michael
2009-02-26 11:05:23 +01:00
Michael Adam
ba0e944c46
s3:registry: provide transaction_start|commit|cancel fns for the registry tdb
...
Michael
2009-02-26 11:05:22 +01:00
Volker Lendecke
170830c008
Wrap creating the sorted subkey cache in a transaction
...
Signed-off-by: Michael Adam <obnox@samba.org>
2009-02-26 11:05:22 +01:00
Volker Lendecke
5c91cdcc47
Add a comment describing the sorted subkeys
...
Signed-off-by: Michael Adam <obnox@samba.org>
2009-02-26 11:05:22 +01:00
Volker Lendecke
1b1aac412c
Add sorted subkey cache
...
On my box this gets net conf list for 1000 records down to .1 seconds
Signed-off-by: Michael Adam <obnox@samba.org>
2009-02-26 11:05:22 +01:00
Volker Lendecke
aeb26fe911
Add db_tdb_parse
...
Signed-off-by: Michael Adam <obnox@samba.org>
2009-02-26 11:05:22 +01:00
Volker Lendecke
9475e88bea
Add dbwrap->parse_record
...
Signed-off-by: Michael Adam <obnox@samba.org>
2009-02-26 11:05:22 +01:00
Volker Lendecke
16f61a6f90
Speed up "net conf list"
...
For 1000 shares this speeds up net conf list from .6 to .25 seconds on my box
Signed-off-by: Michael Adam <obnox@samba.org>
2009-02-26 11:05:21 +01:00
Volker Lendecke
26f238466c
Speed up "net conf list"
...
With 1000 shares in the registry, this changed the time of "net conf list" from
1.1 seconds to .6 seconds.
Signed-off-by: Michael Adam <obnox@samba.org>
2009-02-26 11:05:21 +01:00
Stefan Metzmacher
8e4816f007
s4:Makefile: try to fix 'make installheaders' on *BSD systems
...
metze
2009-02-26 10:55:00 +01:00
Stefan Metzmacher
b6597424db
s4:heimdal_build: don't always build setprogname.o
...
This hopefully fixes the build on Mac OS 10, where setprogname()
is available via libc.
asn1_compile and compile_et use only .ho files again
and don't use socket_wrapper anymore.
metze
2009-02-26 10:48:11 +01:00
Stefan Metzmacher
c21ae8d1bf
libreplace: make it possible to disable socket_wrapper via -DSOCKET_WRAPPER_DISABLE=1
...
metze
2009-02-26 10:48:10 +01:00
Stefan Metzmacher
64662cb0c3
s4:ldb_map: include ldb_includes.h first to get replace.h as first header
...
This should bring the build on AIX one step further.
metze
2009-02-26 09:42:29 +01:00
Stefan Metzmacher
b679f6b256
s4:VERSION: mark as 4.0.0-alpha8 gitsnapshot
...
metze
2009-02-26 09:10:23 +01:00
Andrew Bartlett
c3632e4efc
Mark as the Samba 4.0 alpha7 release
2009-02-26 13:21:08 +11:00
Andrew Bartlett
76a0050e23
A simple hack to avoid the segfault in #6138
...
Thanks to Andrew Kroeger <andrew@id10ts.net> for reporting this. This
fix just for the release. A better fix will make it into the master
branch soon.
Andrew Bartlett
2009-02-26 13:12:07 +11:00
Jeremy Allison
59a28a22ab
Fix more POSIX path lstat calls. Fix bug where close can return
...
failure if we have a pending modtime and the containing directory
of the file has been renamed (there is no POSIX "update time by
fd" call). This can't happen on Windows as the rename will fail
if there are open files beneath it. Will add a torture test
for this.
Jeremy.
2009-02-25 14:57:16 -08:00
Jeremy Allison
a6d0a93fc2
Use fsp->posix_open in preference if we have it.
...
Jeremy.
2009-02-25 14:50:19 -08:00
Günther Deschner
9e54f4151c
s3-spoolss: fix _spoolss_AddJob behaviour.
...
Guenther
2009-02-25 23:48:30 +01:00
Günther Deschner
7e01ec5560
s4-spoolss: implement dcesrv_spoolss_AddJob which always is a dummy.
...
Guenther
2009-02-25 23:48:29 +01:00
Günther Deschner
8bf0c256d7
s4-smbtorture: add test_AddJob test to RPC-SPOOLSS test.
...
Guenther
2009-02-25 23:48:29 +01:00
Jeremy Allison
9b8bb1ad95
Ensure ACL modules work with POSIX paths.
...
Jeremy.
2009-02-25 14:12:51 -08:00
Günther Deschner
228e75112f
s4-spoolss: implement dcesrv_spoolss_GetPrintProcessorDirectory.
...
Guenther
2009-02-25 23:06:56 +01:00
Stefan Metzmacher
e17df483fb
lib/tdb: if we know pwrite and pread are thread/fork safe tdb_reopen_all() should be a noop
...
The reason for tdb_reopen_all() is that the seek pointer on fds are shared between
parent and child.
metze
2009-02-25 13:57:11 -08:00
Tim Prouty
95e428e227
s3: Report the correct path when dumping core on FreeBSD
...
Utilize the kern.corefile sysctl value on FreeBSD
2009-02-25 13:57:11 -08:00
Tim Prouty
7f33b947e3
s3: Refactor and cleanup the error paths in dump_core_setup
2009-02-25 13:57:11 -08:00
Tim Prouty
01493737c8
s3 OneFS: Add .snapshot directory configuration handling
2009-02-25 13:57:11 -08:00
Jeremy Allison
76ca297ecf
Fix use of streams modules with CIFSFS client.
...
Jeremy.
2009-02-25 13:46:21 -08:00
Günther Deschner
a4e570e3ce
s3-rpcclient: add test command to call netr_LogonGetCapabilities (for bug #6100 ).
...
Guenther
2009-02-25 22:17:39 +01:00
Jeremy Allison
bfc7ec9e4a
Make test for open modes more robust against other bits.
...
Jeremy.
2009-02-25 13:00:44 -08:00
Jeremy Allison
3d7cde5dd3
Fix bug in processing of open modes in POSIX open.
...
Was missing case of "If file exists open. If file doesn't exist error."
Damn damn damn. CIFSFS client will have to have fallback cases
for this error for a long time.
Jeremy.
2009-02-25 12:53:45 -08:00
Günther Deschner
d86cb9b52d
s3-rpcclient: support level 2 in spoolss_addform.
...
Guenther
2009-02-25 21:18:10 +01:00
Günther Deschner
03efdcb7cb
s3-spoolss: make us pass the RPC-SPOOLSS torture test w.r.t. directory calls.
...
Guenther
2009-02-25 21:18:09 +01:00
Günther Deschner
820a1c1a17
s3-spoolss: JOB_ACCESS_READ has moved to idl.
...
Guenther
2009-02-25 21:18:08 +01:00
Günther Deschner
6cd30a351a
s4-smbtorture: expand RPC-SPOOLSS enumform and getform tests for level 2 forms.
...
Guenther
2009-02-25 21:17:19 +01:00
Günther Deschner
666cc916eb
s4-smbtorture: add test_GetPrintProcessorDirectory to RPC-SPOOLSS.
...
Guenther
2009-02-25 21:17:18 +01:00