1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-15 16:23:49 +03:00
Commit Graph

53 Commits

Author SHA1 Message Date
Jelmer Vernooij
1ce32673d9 r24712: No longer expose the 'BOOL' data type in any interfaces. 2007-10-10 15:02:54 -05:00
Andrew Tridgell
1aa4628f16 r24644: add a ctdb_fetch() function to the ctdb client code 2007-10-10 15:02:30 -05:00
Andrew Tridgell
5705ee0449 r24643: add a ctdb_fetch() function to the ctdb client code 2007-10-10 15:02:29 -05:00
Andrew Tridgell
b04bcf46e1 r24275: - setup the connection to the ctdb daemon
- disable the brlock ctdb backend for now
2007-10-10 15:01:34 -05:00
Andrew Tridgell
be85c48f8d r24274: - merge from ctdb bzr tree
- use ctdb_attach() instead of ctdb_db_handle()

- make ctdb_attach() return an existing db handle if it exists
2007-10-10 15:01:33 -05:00
Andrew Tridgell
b196077cbb r23806: update Samba4 with the latest ctdb code.
This doesn't get the ctdb code fully working in Samba4, it just gets
it building and not breaking non-clustered use of Samba. It will take
a bit longer to update some of the calling ctdb_cluster.c code to make
it work correctly in Samba4.

Note also that Samba4 now only links to the client portion of
ctdb. For the moment I am leaving the ctdbd as a separate daemon,
which you install separately from http://ctdb.samba.org/.
2007-10-10 14:59:20 -05:00
Andrew Tridgell
3121f91493 r23805: this directory is not used any more 2007-10-10 14:59:19 -05:00
Andrew Tridgell
5c9b19271e r23801: The FSF has moved around a lot. This fixes their Mass Ave address. 2007-10-10 14:59:18 -05:00
Andrew Tridgell
db92b76a00 r23799: updated old Franklin Street FSF addresses to new URL 2007-10-10 14:59:16 -05:00
Andrew Tridgell
40c0919aaa r23798: updated old Temple Place FSF addresses to new URL 2007-10-10 14:59:15 -05:00
Andrew Tridgell
84b468b2f8 r23795: more v2->v3 conversion 2007-10-10 14:59:14 -05:00
Andrew Tridgell
fcf38a38ac r23792: convert Samba4 to GPLv3
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
2007-10-10 14:59:12 -05:00
Jelmer Vernooij
44248f662f r23289: Provide support for GCC attributes _PURE_, _NONNULL_, _DEPRECATED_, _NORETURN_ and _WARN_UNUSED_RESULT_. 2007-10-10 14:53:08 -05:00
Stefan Metzmacher
83a61a2892 r22863: in SMB2 mode we always need to return NT_STATUS_LOCK_NOT_GRANTED
metze
2007-10-10 14:52:25 -05:00
Andrew Tridgell
fd8594d62e r22423: don't need popt here 2007-10-10 14:51:18 -05:00
Andrew Tridgell
3633f862b9 r22421: merged in latest ctdb changes from bzr 2007-10-10 14:51:17 -05:00
Andrew Tridgell
6d9d62dca3 r22237: this init fn doesn't exist yet 2007-10-10 14:50:44 -05:00
Andrew Tridgell
d825f4e6cc r22234: merge test suite changes from bzr tree 2007-10-10 14:50:41 -05:00
Andrew Tridgell
2c12f8e72f r22232: add a special message handler ID meaning "all messages please"
This better fits the way Samba4 does message dispatch
2007-10-10 14:50:40 -05:00
Andrew Tridgell
807b959082 r22231: merge from bzr ctdb tree 2007-10-10 14:50:40 -05:00
Andrew Tridgell
d7f122df1d r22117: merged from bzr 2007-10-10 14:49:52 -05:00
Andrew Tridgell
e60a485ff5 r22114: merge from bzr tree 2007-10-10 14:49:51 -05:00
Andrew Tridgell
a57af1ff82 r22098: merged from bzr tree 2007-10-10 14:49:51 -05:00
Andrew Tridgell
43ee3f8724 r22085: correct copyright on opendb_ctdb.c 2007-10-10 14:49:49 -05:00
Andrew Tridgell
e2fe45cf40 r22084: use a TDB_INTERNAL tdb for the local ctdb tdb for now 2007-10-10 14:49:49 -05:00
Andrew Tridgell
141bd7ac39 r22083: opendb backend to ctdb now passes simple tests 2007-10-10 14:49:49 -05:00
Andrew Tridgell
b0da25cb79 r22082: merged the ctdb changes from bzr
added opendb ctdb backend from ronnie
2007-10-10 14:49:48 -05:00
Andrew Tridgell
d9a997fd39 r22072: in order to implement the opendb ctdb backend, I've found that the
existing ctdb_call() mechanism isn't sufficient. The main problem is
that the operations on the record need to be done with a lock held
while a local posix file operation is happening. We can't use a
ctdb_call callback function to do the actual file opens, renames,
unlinks etc as the callback would run on the wrong node.

So this commit adds the prototypes for two new ctdb API functions
which will make a opendb backend easier. Volker will probably
recognise these functions as they are basically the same as what he
did in his earlier Samba clustering code :-)
2007-10-10 14:49:47 -05:00
Andrew Tridgell
44dcac9e4d r22070: merge in the changes from the bzr ctdb tree, and convert the brlock
ctdb backend to use the updated multi-database API
2007-10-10 14:49:47 -05:00
Jelmer Vernooij
7cf9d07c88 r21669: Fix --enable-dso build 2007-10-10 14:49:07 -05:00
Andrew Tridgell
3df7527aed r21256: - msg_type is not needed in the cluster messaging API
- merge ctdb_get_num_nodes() from bzr tree
2007-10-10 14:44:55 -05:00
Andrew Tridgell
f05072ad74 r21233: first version of samba4 messaging using ctdb is working. This means we
should now work on a real cluster, and not just a localhost simulator
2007-10-10 14:44:50 -05:00
Andrew Tridgell
b288ba05e5 r21232: added a raw ctdb messaging api - allowing ctdb applications to take
advantage of the ctdb messaging layer for their own data
2007-10-10 14:44:49 -05:00
Andrew Tridgell
4474552e8f r21230: added the hooks needed in the cluster layer and the messaging code for
handling messages to remote nodes. Implemented dummy functions in the
'local' cluster backend for the messaging hooks, and modified the
messaging layer to check if the destination is remote and redirect
messages via the cluster layer
2007-10-10 14:44:49 -05:00
Andrew Tridgell
faf9a1146c r21173: - keep the ctdb queue when reconnecting (this will need to be more
complex once we have code for changing the number of nodes)

- fixed a ctdb/tcp bug in the handling of multiple packets waiting on
  a socket
2007-10-10 14:44:41 -05:00
Andrew Tridgell
2d6e082e81 r21172: fixed a comment 2007-10-10 14:44:41 -05:00
Andrew Tridgell
169920a534 r21140: enable the pending lock notify code in the ctdb backend so that timed
locks retry immediately when another blocking lock is removed.
2007-10-10 14:44:33 -05:00
Andrew Tridgell
70c3acaf88 r21045: every call in brlock_ctdb ended up neededing a 32 bit status code, so
rather than allocating a reply_data field each time, I have changed
the ctdb_call API to include a status code. That greatly simplifies
use of the API.
2007-10-10 14:44:25 -05:00
Andrew Tridgell
cf317480cb r21044: - merge struct ctdb_call API changes from bzr tree
- convert brlock code to new API
2007-10-10 14:44:25 -05:00
Andrew Tridgell
3e5f29bddf r20991: use relative includes for ctdb headers. This works with both
standalone and built-in ctdb
2007-10-10 14:44:18 -05:00
Andrew Tridgell
8b5d7d66c9 r20948: a very simple example on how to setup and test ctdb 2007-10-10 14:43:59 -05:00
Andrew Tridgell
53fd66340a r20946: fixed another couple of bugs in the brlock ctdb backend. It now
survives very long random locktest runs.
2007-10-10 14:43:58 -05:00
Andrew Tridgell
7622e7b4b2 r20945: fixed the bug causing locktest to fail with the ctdb backend after a
couple of hundred opertations. Also removed a lot of the debug code I
was using to track this down.
2007-10-10 14:43:58 -05:00
Andrew Tridgell
05d19af38c r20944: if a call has been destroyed before a reply comes in then discard the
reply
2007-10-10 14:43:57 -05:00
Andrew Tridgell
fd8e460439 r20943: use offsetof() instead of sizeof() - 1 for the packet length
calculations. It will be interesting to see how portable this is.

The advantage over the sizeof() method is that it avoids padding
problems after the data[1] array. That was causing us to get valgrind
errors.
2007-10-10 14:43:57 -05:00
Andrew Tridgell
0ed9138449 r20919: add a function cluster_tdb_tmp_open() which can be used in a cluster
environment for subsystems that have not yet been converted to use
ctdb to get a shared temporary tdb
2007-10-10 14:43:52 -05:00
Andrew Tridgell
4bf741b567 r20918: a bit more debugging, and remove the hackish /dev/null writes I used
to track down some uninitialised memory (sometimes valgrind gets the
offset wrong, writing to /dev/null 1 byte at a time avoids this)
2007-10-10 14:43:51 -05:00
Stefan Metzmacher
015097677c r20901: - not all compiler like uint8_t data[0] elements!
- this fix looks really ugly but I don't know a better solution...

if we would use uint8_t *data; then we would send the pointer value
also in the network packet and we would need to initialize

s->data = ((void *)(&s->data) + 1;

to make the memcpy statements work as they're currently,
so we use uint8_t data[1] in the struct definition ...

tridge: please review careful!

hopefully fix the build on solaris and HPUX

metze
2007-10-10 14:43:49 -05:00
Stefan Metzmacher
cb59eae919 r20900: fix compiler warnings
metze
2007-10-10 14:43:49 -05:00
Andrew Tridgell
45f5c272f3 r20896: make the maximum lacount configurable in smb.conf
at the moment the brlock_ctdb backend will sometimes fail after
dmaster migrations. So to pass tests this needs to be set high. Thats
a priority to fix.
2007-10-10 14:43:48 -05:00