1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00
Commit Graph

10975 Commits

Author SHA1 Message Date
Simo Sorce
21e63dca9b r19453: Expose helper functions
(This used to be commit ee86e88e4f)
2007-10-10 14:21:34 -05:00
Simo Sorce
5203031007 r19452: Warn but don't die if registering against the rootdse is not possible
(This used to be commit 4ad2eba2aa)
2007-10-10 14:21:33 -05:00
Derrell Lipman
68453d1da2 r19449: ldbbrowse: installation hopefully works now. "Developer" installations
('configure.developer' or 'configure --enable-developer') may still have
problems as I'm not sure I got all of the paths right for that.

With the changes Tridge has made to the Main Menu in swat, given a
non-developer installation, you should be able to get to ldbbrowse via:

  JSON/qooxdoo -> ldb browser

Derrell
(This used to be commit 2406af1079)
2007-10-10 14:21:33 -05:00
Stefan Metzmacher
7653fa22d9 r19443: reset trap when we have removed the test specifc files already
metze
(This used to be commit 15d24f355a)
2007-10-10 14:21:33 -05:00
Stefan Metzmacher
2e468ee5df r19442: this real cause of the failures on *BSD came from the missing
ICONV dependency and not from a broken configure test
and incorrect ifdef's.

metze
(This used to be commit 3df2cb1ea8)
2007-10-10 14:21:32 -05:00
Andrew Tridgell
515c92a759 r19441: work in progress support for NFS4 ACLs in Samba4 on Linux. Still work
to do, particularly with getting the detailed bit mappings right, and
on sid mapping. Does not pass RAW-ACLS yet
(This used to be commit b92553481b)
2007-10-10 14:21:32 -05:00
Andrew Tridgell
9044f4aa90 r19440: merged from samba3
(This used to be commit c22fb04023)
2007-10-10 14:21:32 -05:00
Andrew Tridgell
ab037664d8 r19439: revert my change to a torture assert - expected is a bool
(This used to be commit 1d231e45bd)
2007-10-10 14:21:32 -05:00
Andrew Tridgell
5a4b133d1c r19438: try to fix up the build breakages on BSD systems due to incorrectly
detecting iconv.h
(This used to be commit e6baa13e1f)
2007-10-10 14:21:31 -05:00
Andrew Tridgell
ce37cdb593 r19437: don't run the LOCAL-ICONV test on systems that don't have CP850
support
(This used to be commit bb8cdd7626)
2007-10-10 14:21:31 -05:00
Andrew Tridgell
1427d5012a r19436: fixed stderr in piped_child() as well
(This used to be commit db000261f4)
2007-10-10 14:21:31 -05:00
Andrew Tridgell
acadb12c26 r19435: fixed the subunit code on platforms with small pipe buffers, and use
pipe() on all platforms, not socket pairs (stdin/out are not sockets)

also show the output while its happening, so the tests become useful
again for non-automated usage.

I still really dislike running tests like the TALLOC one as child
processes
(This used to be commit b621999c59)
2007-10-10 14:21:31 -05:00
Andrew Tridgell
5ce18f91e0 r19434: we need to force line buffering as the new torture code doesn't create
a pty in the piped_child() code

Jelmer, if you want to fix this on platforms that support it, see the
forkpty() call, or see
http://junkcode.samba.org/ftp/unpacked/junkcode/rline/
(This used to be commit 35908a2992)
2007-10-10 14:21:30 -05:00
Andrew Tridgell
49371f496d r19433: Metze, please take a look at this one!
Failures on some platforms of the WINSREPLICATION test have been
bugging us for months. I finally traced it down to this one record, at
least on the SerNet-solaris8 machine. Disabling this one record allows
the test to pass. I have no idea why, but I'll leave that to Metze :)
(This used to be commit 94cdfd5458)
2007-10-10 14:21:30 -05:00
Brad Henry
288b3850d8 r19432: This way of reverting snapshots is much better than the way I was doing them before.
(This used to be commit 42171cbf49)
2007-10-10 14:21:30 -05:00
Andrew Tridgell
af870da619 r19428: moved tdbutil.c from lib/tdb/common/ to lib/util/util_tdb.c
tdbutil.c is Samba specific, so should not be part of the generic tdb
library
(This used to be commit 979dd24f5e)
2007-10-10 14:21:30 -05:00
Stefan Metzmacher
b316b78cd5 r19427: print out the currect name
metze
(This used to be commit 0fcdc8c243)
2007-10-10 14:21:29 -05:00
Andrew Tridgell
d71502b07c r19425: two more tdb functions from samba3
(This used to be commit c9d9d79c34)
2007-10-10 14:21:29 -05:00
Andrew Tridgell
118c064a47 r19423: merge some tdb changes from SAMBA_3_0 to SAMBA_4_0
this is in preparation of a merge in the other direction
(This used to be commit db3211079f)
2007-10-10 14:21:29 -05:00
Andrew Tridgell
5370afe8c2 r19412: some rather strange looking changes to talloc that gain us about 50%
in the talloc benchmark. These changes were driven by some cachegrind
profiles, with the biggest improvements coming from inlining some
functions.

I don't think it would be a good idea to start spreading inline and
likely()/unlikely() in other parts of Samba, as the benefit in most
code will be very small, but talloc() is such a speed critical part of
Samba that I think these changes are worthwhile
(This used to be commit 8644708c3f)
2007-10-10 14:21:29 -05:00
Andrew Tridgell
c3e4b2d278 r19411: sigh - we can't call close here as its mapped to swrap_close() in the
build farm
(This used to be commit be43b8c569)
2007-10-10 14:21:28 -05:00
Andrew Tridgell
21948f18a7 r19410: - fixed checker error
- close the sockets after the socketpair test
(This used to be commit e679163ac2)
2007-10-10 14:21:28 -05:00
Love Hörnquist Åstrand
97ccda014d r19409: Pull in <sys/time.h> for struct timeval for non samba build (don't
depend on namespace pollution)
(This used to be commit 5052d2d106)
2007-10-10 14:21:28 -05:00
Andrew Tridgell
0ec080d505 r19408: I think tm_mon is ending up as -1 on some platforms
(This used to be commit d01bdf1f2d)
2007-10-10 14:21:27 -05:00
Derrell Lipman
74119919d9 r19407: add a copyright notice
(This used to be commit 802ede34e8)
2007-10-10 14:21:27 -05:00
Derrell Lipman
c2be30ee30 r19406: ldbbrowse: done!
With ldbbrowse, you can issue searches or browse the database in tree format.
To try it, ensure that "make installswat" is done (it's run by "make install"
so you shouldn't have to do anything special).  Run smbd and connect with your
browser to http://localhost:901/apps/samba/utils/ldbbrowse.html

(It looks great in firefox.  There's some problem with the layout in IE.
Maybe if I get really really motivated one of these days, I'll look into that.)

There's lots more that could be done with it, but as an example of using
qooxdoo and JSON-RPC, I think it accomplishes its task.

Enjoy!

Derrell
(This used to be commit 0888c7098d)
2007-10-10 14:21:27 -05:00
Andrew Tridgell
cd2bc5854c r19405: the talloc speed test suite was not giving an accurate picture of the
cost of talloc versus malloc. The size parameter in the test suite was
constantly increasing, leading to a worst case for malloc. It is far
more common to have talloc calls of 100 bytes or lower, so change the
benchmark to reflect this.

This makes talloc look much worse - on my laptop I now get:

talloc: 5615164 ops/sec
malloc: 14337130 ops/sec

I'm working on improving that.
(This used to be commit db273ef4dd)
2007-10-10 14:21:27 -05:00
Andrew Tridgell
d6db8e6cb8 r19404: fixed the LOCAL-ICONV test
(This used to be commit 0b3e83814b)
2007-10-10 14:21:26 -05:00
Andrew Tridgell
d04efb30a0 r19403: try to fix the crashes in the buildfarm related to timegm
(This used to be commit c4e1d2c5ae)
2007-10-10 14:21:26 -05:00
Andrew Tridgell
4b9eee02c4 r19402: - use the new tdb_lockall_read() to make ldb_search() more efficient,
by avoiding chain locks on each tdb_fetch() within the search

- use the tdb_get_seqnum() call to avoid re-reading the @BASEINFO
  record when it hasn't changed.

These speed up the LOCAL-DBSPEED test for ldb from 7k ops/sec to a bit
over 11k ops/sec
(This used to be commit 1347ad254e)
2007-10-10 14:21:26 -05:00
Andrew Tridgell
cba142f1ae r19401: make tdb_lockall() much more efficient, and add a tdb_lockall_read()
call which does a read lock on all chains. These will be used to make
ldb searches more efficient
(This used to be commit de664ec1f8)
2007-10-10 14:21:26 -05:00
Andrew Tridgell
403f0c92a7 r19400: fixed a valgrind error in the directory registry backend (name was
used after closedir(), which invalidates the name)
(This used to be commit d8af519c2d)
2007-10-10 14:21:25 -05:00
Rafal Szczesniak
f8a82ebe2b r19398: more comments
rafal
(This used to be commit 2ed463e3cd)
2007-10-10 14:21:25 -05:00
Derrell Lipman
313e6c6adf r19397: Restrict databases which can be opened to a known set (currently only 'sam.ldb')
(This used to be commit 023c3b02b9)
2007-10-10 14:21:25 -05:00
Jelmer Vernooij
e2383f7ecb r19396: Assume socketpair() is always available (cared for by libreplace) and
create a socket for stderr.
(This used to be commit 16b6dbd713)
2007-10-10 14:21:25 -05:00
Jelmer Vernooij
3a479ae550 r19395: Fix replacement function compilation.
(This used to be commit b79303f251)
2007-10-10 14:21:24 -05:00
Jelmer Vernooij
f9a0ada725 r19393: Add replacement function for socketpair()
(This used to be commit 448a3ecc01)
2007-10-10 14:21:24 -05:00
Jelmer Vernooij
a39f239cb2 r19392: Use torture_setting_* rather than lp_parm_* where possible.
(This used to be commit b28860978f)
2007-10-10 14:21:24 -05:00
Jelmer Vernooij
19af876bbb r19389: Remove samba3-specific checks: instead, always simply mark these tests as
known failing.
(This used to be commit 3855ec9dca)
2007-10-10 14:21:23 -05:00
Jelmer Vernooij
d9fd8b5256 r19388: Start running all LOCAL-* tests but list some of them as known failing.
(This used to be commit bfa0fbfe94)
2007-10-10 14:21:23 -05:00
Jelmer Vernooij
1d3663c230 r19387: Exit with 0 if failures were expected
(This used to be commit b4fc06aeaf)
2007-10-10 14:21:23 -05:00
Derrell Lipman
43aa9f86f5 r19384: ldbbrowse now has all basic functionality.
Issues left for the enterprising developers:

  - Selection of the ldb file to open.  This version always browses sam.ldb.

  - When issuing a search which returns a huge amount of data, firefox times
    out while adding the data to the page.  The ldb functions on the server
    should be upgraded to allow providing a starting offset in the result set,
    and a limit of how many results to return.  The application can then issue
    multiple requests if necessary, to limit the amount of processing needed
    to handle any single result set.

Next step for me is to make it look more like a Samba application and less
like a qooxdoo example application.  Per Tridge's request, I'll leave the
debug console on the page.

Derrell
(This used to be commit 41ed250e02)
2007-10-10 14:21:22 -05:00
Derrell Lipman
c111683f31 r19383: pass only the base filename of an ldb file to be opened; allow server to prepend path where it's located (private_dir)
(This used to be commit 5a21c97b73)
2007-10-10 14:21:22 -05:00
Derrell Lipman
52317b1351 r19382: latest qooxdoo runtime build
(This used to be commit 7789ad2372)
2007-10-10 14:21:22 -05:00
Jelmer Vernooij
4517b7af0e r19381: Print out the specific tests that failed after a smbtorture run.
Support listing known failures as a list of wildcards in the file
`KNOWN_FAILURES'.
(This used to be commit 23f66efd56)
2007-10-10 14:21:22 -05:00
Rafal Szczesniak
c7090e6669 r19380: forgot to add home drive testing as well as home directory...
rafal
(This used to be commit 732c22071e)
2007-10-10 14:21:21 -05:00
Rafal Szczesniak
8fd1ca82d8 r19379: add testing home directory field to the samr tests.
rafal
(This used to be commit 4dfd1d5027)
2007-10-10 14:21:21 -05:00
Jelmer Vernooij
ac698cc283 r19378: Add another type of test result 'error'
(This used to be commit 77d13056bf)
2007-10-10 14:21:20 -05:00
Jelmer Vernooij
1e818c463a r19377: Simplify report functions.
(This used to be commit 0061f3c47e)
2007-10-10 14:21:20 -05:00
Jelmer Vernooij
67abfc4981 r19376: Remove unused helper function.
(This used to be commit 88c589940d)
2007-10-10 14:21:19 -05:00