Rev 589: merge from ronnie in http://samba.org/~tridge/ctdb
tridge at samba.org
tridge at samba.org
Wed Aug 15 01:48:03 GMT 2007
------------------------------------------------------------
revno: 589
revision-id: tridge at samba.org-20070815014803-uzyr9wpzhgs8gye8
parent: tridge at samba.org-20070814230358-pi3oa2w4gul3m0iz
parent: sahlberg at ronnie-20070814215901-4wlkcizak28frm0c
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge
timestamp: Wed 2007-08-15 11:48:03 +1000
message:
merge from ronnie
added:
tests/rb_test.c rb_test.c-20070808012115-zxl6646v2t2axezt-1
modified:
Makefile.in makefile.in-20061117234101-o3qt14umlg9en8z0-1
common/cmdline.c cmdline.c-20070416041216-w1zvz91bkdsgjckw-1
common/rb_tree.c rb_tree.c-20070724085023-9r1nhv41taadrjde-1
common/rb_tree.h rb_tree.h-20070724085025-nboaewff1rsepopq-1
server/ctdb_takeover.c ctdb_takeover.c-20070525071636-a5n1ihghjtppy08r-2
tests/bench.sh bench.sh-20070209014602-vdolpr6esqsa58s7-1
tools/ctdb.c ctdb_control.c-20070426122705-9ehj1l5lu2gn9kuj-1
utils/smnotify/smnotify.x smnotify.x-20070803001844-k0ekeu031hzlt8bg-4
web/nfs.html nfs.html-20070608234340-a8i1dxro7a7i6jz6-1
------------------------------------------------------------
revno: 432.1.195
merged: sahlberg at ronnie-20070814215901-4wlkcizak28frm0c
parent: sahlberg at ronnie-20070813042919-h6lmlogoj33gc55w
committer: Ronnie Sahlberg <sahlberg at ronnie>
branch nick: ctdb
timestamp: Wed 2007-08-15 07:59:01 +1000
message:
from Chris Cowan
patches to smnotify to make it compile under AIX.
On AIX, we need to specify $(POPT_OBJ) explicitely
On AIX we can not use the -C flag to rpcgen since it is not implemented
On AIX we must explicitely force an #include of rpc/rpc.h in the idl
file since rpcgen does not automatically add it to the generated files
------------------------------------------------------------
revno: 432.1.194
merged: sahlberg at ronnie-20070813042919-h6lmlogoj33gc55w
parent: sahlberg at ronnie-20070809061111-5wl0nkvj6q3w87ol
committer: Ronnie Sahlberg <sahlberg at ronnie>
branch nick: ctdb
timestamp: Mon 2007-08-13 14:29:19 +1000
message:
enhanced tests to verify the tree integrity when adding/removing nodes
------------------------------------------------------------
revno: 432.1.193
merged: sahlberg at ronnie-20070809061111-5wl0nkvj6q3w87ol
parent: sahlberg at ronnie-20070809040859-mm0g7d7rmry3l4nu
committer: Ronnie Sahlberg <sahlberg at ronnie>
branch nick: ctdb
timestamp: Thu 2007-08-09 16:11:11 +1000
message:
remove an extra blankline
------------------------------------------------------------
revno: 432.1.192
merged: sahlberg at ronnie-20070809040859-mm0g7d7rmry3l4nu
parent: sahlberg at ronnie-20070808215950-xvbvhdaln254lk22
committer: Ronnie Sahlberg <sahlberg at ronnie>
branch nick: ctdb
timestamp: Thu 2007-08-09 14:08:59 +1000
message:
change the mem hierarchy for trees. let the node be owned by the data
we store in the tree and use a node destructor so that when the data is
talloc_free()d we also remove the node from the tree.
------------------------------------------------------------
revno: 432.1.191
merged: sahlberg at ronnie-20070808215950-xvbvhdaln254lk22
parent: sahlberg at ronnie-20070808074908-ncb3k0rtog0yrg57
committer: Ronnie Sahlberg <sahlberg at ronnie>
branch nick: ctdb
timestamp: Thu 2007-08-09 07:59:50 +1000
message:
remove an unused function
------------------------------------------------------------
revno: 432.1.190
merged: sahlberg at ronnie-20070808074908-ncb3k0rtog0yrg57
parent: sahlberg at ronnie-20070808072640-q8zijs4gqo0z7gjj
committer: Ronnie Sahlberg <sahlberg at ronnie>
branch nick: ctdb
timestamp: Wed 2007-08-08 17:49:08 +1000
message:
run the test for 60 seconds if that is what we claim
------------------------------------------------------------
revno: 432.1.189
merged: sahlberg at ronnie-20070808072640-q8zijs4gqo0z7gjj
parent: sahlberg at ronnie-20070808050919-rzjk9y1mgd1rua5q
committer: Ronnie Sahlberg <sahlberg at ronnie>
branch nick: ctdb
timestamp: Wed 2007-08-08 17:26:40 +1000
message:
add more extensive test cases and verify that we are not losing any
memory inside the tree
------------------------------------------------------------
revno: 432.1.188
merged: sahlberg at ronnie-20070808050919-rzjk9y1mgd1rua5q
parent: sahlberg at ronnie-20070808035018-rp04xlmraf1wmrqx
committer: Ronnie Sahlberg <sahlberg at ronnie>
branch nick: ctdb
timestamp: Wed 2007-08-08 15:09:19 +1000
message:
when we want to kill a tcp connection we stored the connection
description (src + dst sockaddr_in) in a linked list.
everytime we receive a captured packet from the network we had to walk
this list in linear time to see if the packet matched a connection we
wanted to RST.
which wouldnt scale very well.
replace the linked list with a redblack tree that is indexed by
src address, src port, dst address, dst port
to make checking whether the packet belongs to a connection we want to
RST very fast and scalable
the reason we need to capture packets when we want to kill a TCP
connection is because we must wait for an ACK coming back from the
remote host so that we can learn which sequence number to use in the
RST.
Most tcp today will ingore any and all RST segments unless the
sequencenumber lies exactly on the right edge of the window to make
spoofing RST a little bit more difficult.
------------------------------------------------------------
revno: 432.1.187
merged: sahlberg at ronnie-20070808035018-rp04xlmraf1wmrqx
parent: sahlberg at ronnie-20070808023012-sr5g83vwvv0ys6jz
committer: Ronnie Sahlberg <sahlberg at ronnie>
branch nick: ctdb
timestamp: Wed 2007-08-08 13:50:18 +1000
message:
add helpers to traverse a tree where the key is an array of uint32
------------------------------------------------------------
revno: 432.1.186
merged: sahlberg at ronnie-20070808023012-sr5g83vwvv0ys6jz
parent: sahlberg at ronnie-20070808012118-dsnjthe8lhdiz69b
committer: Ronnie Sahlberg <sahlberg at ronnie>
branch nick: ctdb
timestamp: Wed 2007-08-08 12:30:12 +1000
message:
add helpers to add/lookup/delete nodes in a tree where the key is an
array of uint32
------------------------------------------------------------
revno: 432.1.185
merged: sahlberg at ronnie-20070808012118-dsnjthe8lhdiz69b
parent: sahlberg at ronnie-20070808001942-ot8td3h78x1esuyq
committer: Ronnie Sahlberg <sahlberg at ronnie>
branch nick: ctdb
timestamp: Wed 2007-08-08 11:21:18 +1000
message:
add a tree insert function that takes a callback fucntion to populate
the data of the tree.
this callback makes it more convenient to manage cases where one might
want to insert multiple entries into the tree with the same key
rename the tree->tree pointer to tree->root since this is supposed to
point to the root of the tree
add a small test utility
------------------------------------------------------------
revno: 432.1.184
merged: sahlberg at ronnie-20070808001942-ot8td3h78x1esuyq
parent: sahlberg at ronnie-20070808001444-pp2m5z86dd4yse9z
committer: Ronnie Sahlberg <sahlberg at ronnie>
branch nick: ctdb
timestamp: Wed 2007-08-08 10:19:42 +1000
message:
change fprintf(stderr to DEBUG(0, now that client DEBUGs are redirected
to stderr
------------------------------------------------------------
revno: 432.1.183
merged: sahlberg at ronnie-20070808001444-pp2m5z86dd4yse9z
parent: sahlberg at ronnie-20070807222520-z9l88wxerrv3sj8b
parent: tridge at samba.org-20070807034013-48m6oprew7yql7ij
committer: Ronnie Sahlberg <sahlberg at ronnie>
branch nick: ctdb
timestamp: Wed 2007-08-08 10:14:44 +1000
message:
merge from tridge
------------------------------------------------------------
revno: 432.1.182
merged: sahlberg at ronnie-20070807222520-z9l88wxerrv3sj8b
parent: sahlberg at ronnie-20070807222046-33nha4oycrbpedia
committer: Ronnie Sahlberg <sahlberg at ronnie>
branch nick: ctdb
timestamp: Wed 2007-08-08 08:25:20 +1000
message:
compile rb_tree.c by default.
this code is not yet called from anywhere but is at least now compiled
------------------------------------------------------------
revno: 432.1.181
merged: sahlberg at ronnie-20070807222046-33nha4oycrbpedia
parent: sahlberg at ronnie-20070807215813-4ss5kdfjsh59y3hi
committer: Ronnie Sahlberg <sahlberg at ronnie>
branch nick: ctdb
timestamp: Wed 2007-08-08 08:20:46 +1000
message:
when inserting data in the tree, if there was already a node with the
same key then replace the data in the node with the new data and return
the pointer to the previous data held in the node.
this allows a caller to avoid having to first check if a node already
exists before inserting a possibly duplicate/colliding entry and lets
the caller do whatever it needs to do after the fact.
------------------------------------------------------------
revno: 432.1.180
merged: sahlberg at ronnie-20070807215813-4ss5kdfjsh59y3hi
parent: sahlberg at ronnie-20070807213553-p4wy20a3y10jnz5a
committer: Ronnie Sahlberg <sahlberg at ronnie>
branch nick: ctdb
timestamp: Wed 2007-08-08 07:58:13 +1000
message:
/etc/sysconfig/nfs can now discover the public ipaddress automagically
------------------------------------------------------------
revno: 432.1.179
merged: sahlberg at ronnie-20070807213553-p4wy20a3y10jnz5a
parent: sahlberg at ronnie-20070807025125-2zsj9d50dyelggi9
committer: Ronnie Sahlberg <sahlberg at ronnie>
branch nick: ctdb
timestamp: Wed 2007-08-08 07:35:53 +1000
message:
dont wait indefinitely for the initial getvnn to complete
Diff too large for email (1677, the limit is 200).
More information about the samba-cvs
mailing list