]> git.ipfire.org Git - thirdparty/samba.git/log
thirdparty/samba.git
18 years agoadd a comment that the talloc_free also removes the script from the tree
Ronnie Sahlberg [Wed, 15 Aug 2007 04:46:06 +0000 (14:46 +1000)] 
add a comment that the talloc_free also removes the script from the tree

(This used to be ctdb commit ce71f6e9cf983cc4fe66935ad6c18d55dfed03a5)

18 years agocall the service specific event scripts directly from the forked child
Ronnie Sahlberg [Wed, 15 Aug 2007 04:44:03 +0000 (14:44 +1000)] 
call the service specific event scripts directly from the forked child
instead for from /etc/ctdb/events so that we can get better debugging
output in the logs when something fails in the scripts

(This used to be ctdb commit 4ed96b768aea1611e8002f7095d3c4d12ccf77a3)

18 years agozero out the sa struct to supress a valgrind error
Ronnie Sahlberg [Wed, 15 Aug 2007 02:34:41 +0000 (12:34 +1000)] 
zero out the sa struct to supress a valgrind error

(This used to be ctdb commit b17ff60ad4c5fac76d3f77dacb10c30ae564bf09)

18 years agofix typo
Ronnie Sahlberg [Wed, 15 Aug 2007 01:38:27 +0000 (11:38 +1000)] 
fix typo

(This used to be ctdb commit c7a8e7b506f98240c0e9f705fe1f504a6a56a332)

18 years agoadd a description on how the event scripts works to the README and make
Ronnie Sahlberg [Wed, 15 Aug 2007 01:36:01 +0000 (11:36 +1000)] 
add a description on how the event scripts works to the README and make
sure it is installed in /etc/ctdb/events.d

(This used to be ctdb commit adec62a924af5bb023f346e705515b09dbe64f21)

18 years agoadd a function to return the first entry that is stored in a tree where
Ronnie Sahlberg [Wed, 15 Aug 2007 00:57:21 +0000 (10:57 +1000)] 
add a function to return the first entry that is stored in a tree where
the key is an array of uint32_t

(This used to be ctdb commit 99553397aade4f1c4d17ef14dad406934958c80a)

18 years agocomment that ctdb_event_script_v() is called from a forked childs
Ronnie Sahlberg [Wed, 15 Aug 2007 00:48:10 +0000 (10:48 +1000)] 
comment that ctdb_event_script_v() is called from a forked childs
context and thus can make blocking calls

(This used to be ctdb commit b31d98281f15995ad340d2510e08e04ed46e271a)

18 years agoadd a wrapper function to create the key used to insert/lookup a certain
Ronnie Sahlberg [Wed, 15 Aug 2007 00:01:00 +0000 (10:01 +1000)] 
add a wrapper function to create the key used to insert/lookup a certain
tcp connection in the tree that stores the tcp connections to kill by
sending an RST

add a define that specified the keylength instead of hardcoding it as 4

(This used to be ctdb commit 6a8322cbae10f2c78b2e286c75aeb25ece12ea7f)

18 years agofrom Chris Cowan
Ronnie Sahlberg [Tue, 14 Aug 2007 21:59:01 +0000 (07:59 +1000)] 
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

(This used to be ctdb commit 8c3e7ce645ec829bc465302831cc6b23452525d6)

18 years agoenhanced tests to verify the tree integrity when adding/removing nodes
Ronnie Sahlberg [Mon, 13 Aug 2007 04:29:19 +0000 (14:29 +1000)] 
enhanced tests to verify the tree integrity when adding/removing nodes

(This used to be ctdb commit 7885a4fa6e4ac50081e440ed6c82101ec807999f)

18 years agoremove an extra blankline
Ronnie Sahlberg [Thu, 9 Aug 2007 06:11:11 +0000 (16:11 +1000)] 
remove an extra blankline

(This used to be ctdb commit c71f237e384b33e3c560af3329c615bda613ca04)

18 years agochange the mem hierarchy for trees. let the node be owned by the data
Ronnie Sahlberg [Thu, 9 Aug 2007 04:08:59 +0000 (14:08 +1000)] 
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.

(This used to be ctdb commit b8dabd1811ebd85ee031563e95085f720a2fa04d)

18 years agoremove an unused function
Ronnie Sahlberg [Wed, 8 Aug 2007 21:59:50 +0000 (07:59 +1000)] 
remove an unused function

(This used to be ctdb commit 38a26d1f3709fbce551bc3a7af8bacd0ff465bca)

18 years agorun the test for 60 seconds if that is what we claim
Ronnie Sahlberg [Wed, 8 Aug 2007 07:49:08 +0000 (17:49 +1000)] 
run the test for 60 seconds if that is what we claim

(This used to be ctdb commit ff0c0526e21c35fe7a599e61cd0f84352c7f6ad6)

18 years agoadd more extensive test cases and verify that we are not losing any
Ronnie Sahlberg [Wed, 8 Aug 2007 07:26:40 +0000 (17:26 +1000)] 
add more extensive test cases  and verify that we are not losing any
memory inside the tree

(This used to be ctdb commit 838376b52d65af509532a141d83b51975c7cc881)

18 years agowhen we want to kill a tcp connection we stored the connection
Ronnie Sahlberg [Wed, 8 Aug 2007 05:09:19 +0000 (15:09 +1000)] 
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.

(This used to be ctdb commit ced18caea8582af042287beb6333dd1f8ba3344d)

18 years agoadd helpers to traverse a tree where the key is an array of uint32
Ronnie Sahlberg [Wed, 8 Aug 2007 03:50:18 +0000 (13:50 +1000)] 
add helpers to traverse a tree where the key is an array of uint32

(This used to be ctdb commit d328c66827cafff6356e96df2a782930274fe139)

18 years agoadd helpers to add/lookup/delete nodes in a tree where the key is an
Ronnie Sahlberg [Wed, 8 Aug 2007 02:30:12 +0000 (12:30 +1000)] 
add helpers to add/lookup/delete nodes in a tree where the key is an
array of uint32

(This used to be ctdb commit b7e0996e7735c8629d07453b9d335990c2dbc3db)

18 years agoadd a tree insert function that takes a callback fucntion to populate
Ronnie Sahlberg [Wed, 8 Aug 2007 01:21:18 +0000 (11:21 +1000)] 
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

(This used to be ctdb commit f6313bed9c53e0d1c36c9e08ac707e88e2a4fcd5)

18 years agochange fprintf(stderr to DEBUG(0, now that client DEBUGs are redirected
Ronnie Sahlberg [Wed, 8 Aug 2007 00:19:42 +0000 (10:19 +1000)] 
change fprintf(stderr to DEBUG(0, now that client DEBUGs are redirected
to stderr

(This used to be ctdb commit 14078130d295014a751f3e0039bc8eaf427440f9)

18 years agomerge from tridge
Ronnie Sahlberg [Wed, 8 Aug 2007 00:14:44 +0000 (10:14 +1000)] 
merge from tridge

(This used to be ctdb commit b6ffb429ab33a66e374e9481bbf4fe6b47a67dab)

18 years agocompile rb_tree.c by default.
Ronnie Sahlberg [Tue, 7 Aug 2007 22:25:20 +0000 (08:25 +1000)] 
compile rb_tree.c by default.

this code is not yet called from anywhere but is at least now compiled

(This used to be ctdb commit 4bc06e4d1e6e2ff57e33bae93613b12e7ea26bb0)

18 years agowhen inserting data in the tree, if there was already a node with the
Ronnie Sahlberg [Tue, 7 Aug 2007 22:20:46 +0000 (08:20 +1000)] 
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.

(This used to be ctdb commit 6634cabb910c26400780d51727ff2d1ba5e16e36)

18 years ago/etc/sysconfig/nfs can now discover the public ipaddress automagically
Ronnie Sahlberg [Tue, 7 Aug 2007 21:58:13 +0000 (07:58 +1000)] 
/etc/sysconfig/nfs can now discover the public ipaddress automagically

(This used to be ctdb commit 75e6fe48e4085eedf99ca1223a0e92208e77f716)

18 years agodont wait indefinitely for the initial getvnn to complete
Ronnie Sahlberg [Tue, 7 Aug 2007 21:35:53 +0000 (07:35 +1000)] 
dont wait indefinitely for the initial getvnn to complete

(This used to be ctdb commit ef38725ad8c5f1792feacb14b8888f246187da15)

18 years agomerge from ronnie
Andrew Tridgell [Tue, 7 Aug 2007 03:40:13 +0000 (13:40 +1000)] 
merge from ronnie
(This used to be ctdb commit e06f70f064e39f1a4a394f00b81b6b1d215534d4)

18 years agochange error output in ctdb and in ctdb_cmdline_client to print to
Ronnie Sahlberg [Tue, 7 Aug 2007 02:51:25 +0000 (12:51 +1000)] 
change error output in ctdb   and in ctdb_cmdline_client to print to
stderr instead of stdout

(This used to be ctdb commit 6e6e165c2d8f0963ce37567c23aaa012fc3e89d9)

18 years agoadd a ctdb command to print the default public ip of a host.
Ronnie Sahlberg [Tue, 7 Aug 2007 02:10:05 +0000 (12:10 +1000)] 
add a ctdb command to print the default public ip of a host.

(This used to be ctdb commit 7de5489f6ebd0e5671e7afa5cb51471043ee46d1)

18 years agomerge from tridge
Ronnie Sahlberg [Tue, 7 Aug 2007 00:47:30 +0000 (10:47 +1000)] 
merge from tridge

(This used to be ctdb commit e81b5455af04a76ff53a0eceed9db7e4599c221e)

18 years agomove scsi/scsi_io.c to utils/scsi/scsi_io.c
Ronnie Sahlberg [Mon, 6 Aug 2007 23:03:51 +0000 (09:03 +1000)] 
move scsi/scsi_io.c to utils/scsi/scsi_io.c

(This used to be ctdb commit 157e5a0e96af133d28a36847c82efd23fb2354e3)

18 years agowe dont use sm-notify any more
Ronnie Sahlberg [Mon, 6 Aug 2007 21:40:33 +0000 (07:40 +1000)] 
we dont use sm-notify any more

remove it from the webpage

(This used to be ctdb commit d5447d4ce487f3575054beba07bf255a6a51d2e4)

18 years agodo not restart lockd/statd when we takeover an ip address this is
Ronnie Sahlberg [Sat, 4 Aug 2007 01:23:04 +0000 (11:23 +1000)] 
do not restart lockd/statd when we takeover an ip address   this is
overkill since
1, we now kill the tcpconnections for lockd in 60.nfs
2, rpc.statd on linux sends out the notifications using the wrong
interface anyway  which breaks a lot of clients  including linux !

use our own smnotify tool instead of sm-notify

(This used to be ctdb commit 0163ad0ec01be6189a98ea91e5cec40f6750218f)

18 years agoupdate the specfile to install smnotify
Ronnie Sahlberg [Sat, 4 Aug 2007 00:16:37 +0000 (10:16 +1000)] 
update the specfile to install smnotify

(This used to be ctdb commit a7ae82f62474711bfb3dc90e91c6e2b75bf3ee8e)

18 years agoinstall smnotify in $(bindir)
Ronnie Sahlberg [Sat, 4 Aug 2007 00:15:07 +0000 (10:15 +1000)] 
install smnotify in $(bindir)

(This used to be ctdb commit 61bc93b7b23b74c5b5c7a8e2d6bc5b75c8f73fe1)

18 years agomerge from ronnie
Andrew Tridgell [Fri, 3 Aug 2007 03:18:44 +0000 (13:18 +1000)] 
merge from ronnie
(This used to be ctdb commit e2f11745df88d22e98fc5d5e1ca69acac13f1423)

18 years agodont wait for the default rpc timeout when trying to bing to a client.
Ronnie Sahlberg [Fri, 3 Aug 2007 00:47:37 +0000 (10:47 +1000)] 
dont wait for the default rpc timeout when trying to bing to a client.
abort after 3 seconds

fix makefile so that we generate the header before trying to compile
smnotify.o

(This used to be ctdb commit bda310b74d6364bf88032874a1f3a2fb156f9736)

18 years agoadd a small tool that can send smnotify packets
Ronnie Sahlberg [Fri, 3 Aug 2007 00:18:48 +0000 (10:18 +1000)] 
add a small tool that can send smnotify packets

(This used to be ctdb commit 2bf3e1311ed9c68eeae9e18344da9ca08f0d4297)

18 years agoupdate the manpage for the -n option to make it clear we are referring
Ronnie Sahlberg [Thu, 2 Aug 2007 21:53:52 +0000 (07:53 +1000)] 
update the manpage for the -n option to make it clear we are referring
to the node number and not the node hostname

(This used to be ctdb commit dd9b60887cadb6a8f442230cc06888fd82e7c952)

18 years agoafter we have checked dest address that it is a public address
Ronnie Sahlberg [Mon, 30 Jul 2007 06:10:14 +0000 (16:10 +1000)] 
after we have checked dest address that it is a public address
update addr to the source address so the rpintout in the log matches
the client that attached to samba

(This used to be ctdb commit 72098b71c79469c86769ca82bbd484c81902d27c)

18 years agoadd a small tool to compare rb tree with a timeval_compare()+add an
Ronnie Sahlberg [Mon, 30 Jul 2007 00:50:35 +0000 (10:50 +1000)] 
add a small tool to compare rb tree with a timeval_compare()+add an
entry to the end of the list DLIST (worst case insert)

(This used to be ctdb commit dcdf4a1f1c6675ae11ab26726c867d7782954fc6)

18 years agofix the remaining bugs with tree delete that testing found.
Ronnie Sahlberg [Sun, 29 Jul 2007 23:09:34 +0000 (09:09 +1000)] 
fix the remaining bugs with tree delete that testing found.

the binary tree should work reasonably well now for delete.
insert always worked fine.

(This used to be ctdb commit 452cda26b206549504480b77483308b44cfa8b01)

18 years agoremove dead code
Ronnie Sahlberg [Wed, 25 Jul 2007 21:22:36 +0000 (07:22 +1000)] 
remove dead code

(This used to be ctdb commit 97ffcda5e56f04aed2f4f8b889b4eb6311f69c4d)

18 years agofix some remaining bugs with deleting nodes
Ronnie Sahlberg [Wed, 25 Jul 2007 21:21:32 +0000 (07:21 +1000)] 
fix some remaining bugs with deleting nodes

(This used to be ctdb commit 8aec0e0bef794afce1d2abf762bfadee4ab7e619)

18 years agothere were situations where we were not guaranteed that a sibling had 2
Ronnie Sahlberg [Wed, 25 Jul 2007 07:53:55 +0000 (17:53 +1000)] 
there were situations where we were not guaranteed that a sibling had 2
child nodes which would cause a segv when trying to dereferencing those
two child nodes in order to read their color

(This used to be ctdb commit 56f5fb8f8f3e667f5bc13f09fb5de01f5f2e0fae)

18 years agoif sibling is NULL it is a leaf node and thus black.
Ronnie Sahlberg [Wed, 25 Jul 2007 07:22:04 +0000 (17:22 +1000)] 
if sibling is NULL it is a leaf node and thus black.

(This used to be ctdb commit 400488472ba64514fa6534d5de90edba6c5e27c6)

18 years agomake timed_event structure private to events_timed.c
Andrew Tridgell [Wed, 25 Jul 2007 01:43:27 +0000 (11:43 +1000)] 
make timed_event structure private to events_timed.c
(This used to be ctdb commit 4a61132e2a4f6beca8e9148307c7ec16cb74bb08)

18 years agono need to have a separate assignment of the tcparray pointer followed
Ronnie Sahlberg [Tue, 24 Jul 2007 22:03:58 +0000 (08:03 +1000)] 
no need to have a separate assignment of the tcparray pointer followed
by a talloc_steal()
use the returned pointer in talloc_steal as the value to assign

(This used to be ctdb commit 5c6375ad3bbecfa725ec3b1477f259e5a8191866)

18 years agoup release number
Andrew Tridgell [Tue, 24 Jul 2007 12:14:12 +0000 (22:14 +1000)] 
up release number
(This used to be ctdb commit 2b9c196e66264c7a130c957b4d23fc61a62bb10a)

18 years agoinitial version of talloc based red-black trees
Ronnie Sahlberg [Tue, 24 Jul 2007 08:51:13 +0000 (18:51 +1000)] 
initial version of talloc based red-black trees
very initial version

(This used to be ctdb commit 121f5c9dfc8e441313e42d94bed9c9f13ec91398)

18 years agowhen we build the arp structure for sending gratious arp (and tcp
Ronnie Sahlberg [Mon, 23 Jul 2007 21:46:51 +0000 (07:46 +1000)] 
when we build the arp structure for sending gratious arp (and tcp
tickles) just talloc_steal the enture tcp_array into the arp
structure instead of copying each of the entries into a linked list
and then releasing the tcparray.

(This used to be ctdb commit 468e237740cf37a65872ef700bbb1284ede8352a)

18 years agoset the tcp tickle update flag to true once we have done a takeover and
Ronnie Sahlberg [Fri, 20 Jul 2007 09:11:45 +0000 (19:11 +1000)] 
set the tcp tickle update flag to true once we have done a takeover and
tickled all connections
othervise the other nodes will still remember this list until next time
we have had a connection/client closing.

(This used to be ctdb commit cb8e5d4bbee2f14f498735489f673ff3679dfd9d)

18 years agowhen a client connects with TCP_CLIENT we should look at the
Ronnie Sahlberg [Fri, 20 Jul 2007 07:04:08 +0000 (17:04 +1000)] 
when a client connects with TCP_CLIENT  we should look at the
destination address to find the public address   not the source address

(This used to be ctdb commit d6d4a7f38a52c1c2579a54d14cb7a6981fb42f5b)

18 years agoupdated ctdb tickle management
Ronnie Sahlberg [Fri, 20 Jul 2007 05:05:55 +0000 (15:05 +1000)] 
updated ctdb tickle management

there is an array for each node/public address that contains tcp tickles

we send a TCP_ADD as a broadcast to all nodes when a client is added

if tcp tickles are removed, they are only removed immediately from the
local node.
once every 20 seconds a node will push/broadcast out the tickle list for
all public addresses it manages.   this will remove any deleted tickles
from the remote nodes

(This used to be ctdb commit e3c432a915222e1392d91835bc7a73a96ab61ac9)

18 years agochange the tickle list from one global list into an array per public
Ronnie Sahlberg [Fri, 20 Jul 2007 00:06:41 +0000 (10:06 +1000)] 
change the tickle list from one global list into an array per public
ip/node

once we have started sending all tickles for a specific ip   delete the
entire array   so that the tickles dont remain forever in the ctdb
server

add a control to send the full list of every tickle that is registered
for a particular public ip/node

(This used to be ctdb commit d0eee33e44d3f8e26debbec21d41e2cbdbb520e6)

18 years agomerge from tridge
Ronnie Sahlberg [Thu, 19 Jul 2007 05:07:27 +0000 (15:07 +1000)] 
merge from tridge

(This used to be ctdb commit af820a27041168595f6fd03046cfe1a5d781cefc)

18 years ago- log registering of tcp clients
Andrew Tridgell [Thu, 19 Jul 2007 05:04:54 +0000 (15:04 +1000)] 
- log registering of tcp clients
- don\'t remove a tcp entry if we do not own the ip
(This used to be ctdb commit 400aa284b9785ce6409e7600df429f5849e3867d)

18 years agomake sure we still run events when waiting for ctdb_event_script()
Andrew Tridgell [Thu, 19 Jul 2007 03:36:00 +0000 (13:36 +1000)] 
make sure we still run events when waiting for ctdb_event_script()
(This used to be ctdb commit 05efbfe9ff9691c1d7441e7b9855aed25791faf0)

18 years agomerge from tridge
Ronnie Sahlberg [Wed, 18 Jul 2007 21:29:53 +0000 (07:29 +1000)] 
merge from tridge

(This used to be ctdb commit 9ec696d6ab6a3657800b7ba6e29a2b2f7e48e187)

18 years agomerged from ronnie
Andrew Tridgell [Wed, 18 Jul 2007 10:13:57 +0000 (20:13 +1000)] 
merged from ronnie
(This used to be ctdb commit 765b07fa5d1af07c8c7212d19d8e9574060b3039)

18 years agoadd a check if start_node is beyond the end of the nodemap and reset it
Ronnie Sahlberg [Sun, 15 Jul 2007 22:36:09 +0000 (08:36 +1000)] 
add a check if start_node is beyond the end of the nodemap and reset it
back to 0 if it is to prevent an infinite loop.

this could happen if in the future we add a mechanism to add/remove
nodes to a cluster at runtime

(This used to be ctdb commit 217e80a468713fec86ccb0608460e3401046bb98)

18 years agochange the way we pick/find a new node to takeover for a failed node
Ronnie Sahlberg [Sun, 15 Jul 2007 22:28:44 +0000 (08:28 +1000)] 
change the way we pick/find a new node to takeover for a failed node
to keep a static that controls at which noide to start searching the
list for takeover candidates next time we need to find a node.

each time we find a node to takeover, reset the start variable to point
to the next node in the list

this makes the distribution of takeover nodes much more even

(This used to be ctdb commit e9800df5a21079ea478d16f7dd2fd4707de85650)

18 years agowe dont do nfstickles unless ctdb manages nfs
Ronnie Sahlberg [Sun, 15 Jul 2007 01:43:11 +0000 (11:43 +1000)] 
we dont do nfstickles unless ctdb manages nfs

(This used to be ctdb commit 0622b4a969abdc8bd11f200ed5ae1c7b1d188db7)

18 years agofix bug introduced in previous commit
Ronnie Sahlberg [Sun, 15 Jul 2007 01:37:22 +0000 (11:37 +1000)] 
fix bug introduced in previous commit

(This used to be ctdb commit 8396a7500225c90165ebcfbdc2c65673740e6b25)

18 years agothere is no point in doing anything in 10.interfaces unless we have a
Ronnie Sahlberg [Sun, 15 Jul 2007 01:28:53 +0000 (11:28 +1000)] 
there is no point in doing anything in 10.interfaces unless we have a
public interface

(This used to be ctdb commit c0335ee92b16a1e2dfcb37a39872b66a35b0ab94)

18 years agotry netstat as a last attempt to check a tcp port in
Ronnie Sahlberg [Sat, 14 Jul 2007 23:29:08 +0000 (09:29 +1000)] 
try netstat as a last attempt to check a tcp port in
ctdb_check_tcp_ports() as well

(This used to be ctdb commit ad0292726f9cfc8afe3733b30ac2d5621e9a48f1)

18 years agoif we dont have nc or netcat, try using netstat as a final attempt to
Ronnie Sahlberg [Sat, 14 Jul 2007 23:26:54 +0000 (09:26 +1000)] 
if we dont have nc or netcat,  try using netstat as a final attempt to
check for tcp ports

(the check for these tools should not really use hardcoded paths)

(This used to be ctdb commit 56d77082c07a519dd3804cc24cc7ba889b8469ff)

18 years agoif we dont have /etc/sysconfig and we dont have /etc/default
Ronnie Sahlberg [Sat, 14 Jul 2007 23:13:50 +0000 (09:13 +1000)] 
if we dont have /etc/sysconfig  and we dont have /etc/default
check /etc/ctdb/sysconfig as a last option

(This used to be ctdb commit 1043929ceb0cd04ab6466e9a5d7d52f9af1cb8e8)

18 years agowhen we have found that /etc/rc.d/init.d/SERVICE exists, then run that
Ronnie Sahlberg [Sat, 14 Jul 2007 22:54:48 +0000 (08:54 +1000)] 
when we have found that /etc/rc.d/init.d/SERVICE exists, then run that
script and not /etc/rc.d/SERVICE

(This used to be ctdb commit 7f0c3a02ef11fd19c8cd5116fd451ebd10ba5d1b)

18 years agoadd some configure magic to make it configure and build properly on
Ronnie Sahlberg [Sat, 14 Jul 2007 05:16:52 +0000 (15:16 +1000)] 
add some configure magic to make it configure and build properly on
linux and aix

(This used to be ctdb commit 6a422e53a60829c7c8d97e31e6ed14ee38cc2d2d)

18 years agoadd some support for controlling Linux or AIX in the makefile
Ronnie Sahlberg [Sat, 14 Jul 2007 00:58:51 +0000 (10:58 +1000)] 
add some support for controlling Linux or AIX in the makefile

this should really be done by configure

(This used to be ctdb commit 5a855599288995659e81f1bdbed157bdb207f94a)

18 years agoadd an initial system_aix.c to manage raw sockets under aix
Ronnie Sahlberg [Sat, 14 Jul 2007 00:27:34 +0000 (10:27 +1000)] 
add an initial system_aix.c  to manage raw sockets under aix

(This used to be ctdb commit 277527befedd6f5dfde1c51698245197afd83d99)

18 years agoupdate the comment at the top of file to reflect the purpose of the file
Ronnie Sahlberg [Fri, 13 Jul 2007 07:10:09 +0000 (17:10 +1000)] 
update the comment at the top of file to reflect the purpose of the file

(This used to be ctdb commit 4d7670102f44ff0f99dafeb050843be38cb258b0)

18 years agoadd a private_data field to the killtcp structure and let the system
Ronnie Sahlberg [Fri, 13 Jul 2007 07:07:10 +0000 (17:07 +1000)] 
add a private_data field to the killtcp structure and let the system
specific routines populate it as it see fit when creating a
capture socket.
pass this structure to read_tcp and close capture socket as parameter

(This used to be ctdb commit 79bbfcfb2223889126fe307d5bbfd24917da07ee)

18 years agoensure killtcp structure is initialised
Andrew Tridgell [Fri, 13 Jul 2007 01:55:58 +0000 (11:55 +1000)] 
ensure killtcp structure is initialised
(This used to be ctdb commit 2fe7d1ce87e55e125411e7406a9e00b8f55e3cb7)

18 years ago- merge from ronnie
Andrew Tridgell [Fri, 13 Jul 2007 01:31:18 +0000 (11:31 +1000)] 
- merge from ronnie
- cleaner handling of system capture socket

(This used to be ctdb commit d194a41a71b8466d0726dcbae3970a86386fcb3c)

18 years agomerge from tridge
Ronnie Sahlberg [Fri, 13 Jul 2007 01:30:19 +0000 (11:30 +1000)] 
merge from tridge

(This used to be ctdb commit c5002a222d88d4872baea6db5b3e82437307c0ac)

18 years agofully save/restore scheduler parameters
Andrew Tridgell [Thu, 12 Jul 2007 23:35:46 +0000 (09:35 +1000)] 
fully save/restore scheduler parameters
(This used to be ctdb commit 59408eabe7515d49a6eef3b6fb2590a1cd1df956)

18 years agofixed the sense of do_setsched
Andrew Tridgell [Thu, 12 Jul 2007 23:14:31 +0000 (09:14 +1000)] 
fixed the sense of do_setsched
(This used to be ctdb commit 68bca2454ff43ce6d8aab2f87d669d33f5f2a10c)

18 years agoallow extra option override in /etc/sysconfig/ctdb
Andrew Tridgell [Thu, 12 Jul 2007 23:14:15 +0000 (09:14 +1000)] 
allow extra option override in /etc/sysconfig/ctdb
(This used to be ctdb commit f46fae64263ea4776e4bbf9cf14dff17b5b68ddb)

18 years agoadded --nosetsched option to ctdbd
Andrew Tridgell [Thu, 12 Jul 2007 22:47:02 +0000 (08:47 +1000)] 
added --nosetsched option to ctdbd
(This used to be ctdb commit 4cbbb88c1735c7d112e751e22da1c1c69e09bf4a)

18 years agonetinet/if_ether.h is more portable than net/ethernet.h
Ronnie Sahlberg [Thu, 12 Jul 2007 01:43:30 +0000 (11:43 +1000)] 
netinet/if_ether.h is more portable than net/ethernet.h

(This used to be ctdb commit ee84ea17529a27e22c1a0503d07aaeec1ef731e2)

18 years agothe posix.4 name for the priority field is sched_priority
Ronnie Sahlberg [Thu, 12 Jul 2007 01:31:20 +0000 (11:31 +1000)] 
the posix.4 name for the priority field is sched_priority
not __sched_priority

(This used to be ctdb commit c08c5a36b3f1dd2cb72278058cb5664816e1d339)

18 years agoas an optimization for when we want to send multiple tickles at a time
Ronnie Sahlberg [Wed, 11 Jul 2007 23:22:06 +0000 (09:22 +1000)] 
as an optimization for when we want to send multiple tickles at a time
let the caller create the sending socket and use a single socket instead
of one new one for each tickle.
pass a sending socket to ctdb_sys_send_tcp()

ctdb_sys_kill_tcp is not longer used so remove it

set the socketflags for close on exec and nonblocking in the helper that
creates the sockets instead of in the caller

add a helper to create a sending socket to send tickles from

(This used to be ctdb commit 469f3fb238a0674a2b48fdf1a7e657e32428178a)

18 years agorename killtcp->fd to killtcp->capture_fd
Ronnie Sahlberg [Wed, 11 Jul 2007 22:52:24 +0000 (08:52 +1000)] 
rename killtcp->fd to killtcp->capture_fd

we might want to have two sockets attached to the killtcp structure
one for capturing and a second one for sending  so we dont have to
create a new socket for each tickle we want to send

(This used to be ctdb commit b3e82ec38047bbec1edfd88ade264077d4cbd2ee)

18 years agoctdb killtcp no longer takes a <numrst> argument to control how many
Ronnie Sahlberg [Wed, 11 Jul 2007 22:31:56 +0000 (08:31 +1000)] 
ctdb killtcp  no longer takes a <numrst> argument to control how many
times to try the reset.

the reset retry attempt is now handled inside the daemon

update the 60.nfs script and remove this parameter that is no longer
used

(This used to be ctdb commit 30fb09b8b9a989e5cfe86b6daf2dcd2487013344)

18 years agomake the ctdb tool use the killtcp control in the daemon instead of
Ronnie Sahlberg [Wed, 11 Jul 2007 22:30:04 +0000 (08:30 +1000)] 
make the ctdb tool use the killtcp control in the daemon instead of
calling killtcp directly

(This used to be ctdb commit d21e3e9cf11bdcba6234302e033d6549c557dd69)

18 years agoadd daemon code for the new kill_tcp control
Ronnie Sahlberg [Wed, 11 Jul 2007 08:24:25 +0000 (18:24 +1000)] 
add daemon code for the new kill_tcp control

(This used to be ctdb commit 8fe4ae62255ecb2db36bea736ff17409ba6614c5)

18 years agoadd a ctdb_ prefix to two public functions
Ronnie Sahlberg [Wed, 11 Jul 2007 08:13:03 +0000 (18:13 +1000)] 
add a ctdb_ prefix to two public functions

(This used to be ctdb commit 32adee5426aa75ddcd4d648ef326ed03d5ff5c46)

18 years agofirst cut at a better and more scalable socketkiller
Ronnie Sahlberg [Wed, 11 Jul 2007 07:43:51 +0000 (17:43 +1000)] 
first cut at a better and more scalable socketkiller
that can kill multiple connections asynchronously using one listening
socket

(This used to be ctdb commit 22bb44f3d745aa354becd75d30774992f6c40b3a)

18 years agoadd a ctdb_kill_tcp_callback() that will perform a kill tcp using a
Ronnie Sahlberg [Wed, 11 Jul 2007 02:33:14 +0000 (12:33 +1000)] 
add a ctdb_kill_tcp_callback() that will perform a kill tcp using a
background process

(This used to be ctdb commit dcfcaacff56347d94c244512eb72219b05ef9c3d)

18 years agopass the header to ctdb_become_dmaster instead of just the reqid
Ronnie Sahlberg [Tue, 10 Jul 2007 23:44:52 +0000 (09:44 +1000)] 
pass the header to ctdb_become_dmaster instead of just the reqid

this allows us to print from which node Invalid or Dropped orphan become
dmaster packets came from

(This used to be ctdb commit 88efd1bf4c796cd2b184156b72296587bc38bb40)

18 years agoprint the operation code in the debug message when we discard a packet
Ronnie Sahlberg [Tue, 10 Jul 2007 22:41:29 +0000 (08:41 +1000)] 
print the operation code in the debug message when we discard a packet
due to incorrect generation number

(This used to be ctdb commit 3151e3b2607291572fc6e7380fd60ef7ce438307)

18 years agoregenerated ctdbd manpage
Ronnie Sahlberg [Tue, 10 Jul 2007 22:27:22 +0000 (08:27 +1000)] 
regenerated ctdbd manpage

(This used to be ctdb commit ec5788eb3e210b819c9c90f36cbb3e5b7e609e52)

18 years agomerge from tridge
Ronnie Sahlberg [Tue, 10 Jul 2007 09:07:23 +0000 (19:07 +1000)] 
merge from tridge

(This used to be ctdb commit fffe94f22f58027bdf2b465d252f41e7b8689399)

18 years agominor back-merge from samba4
Andrew Tridgell [Tue, 10 Jul 2007 08:13:47 +0000 (18:13 +1000)] 
minor back-merge from samba4
(This used to be ctdb commit c591f9b2d2847f440702e7264c7da2fd6d69f4be)

18 years agomerge from tridge
Ronnie Sahlberg [Tue, 10 Jul 2007 07:45:04 +0000 (17:45 +1000)] 
merge from tridge

(This used to be ctdb commit 6aecb65883eb902375f85b70a1512db4339833eb)

18 years agomore merges for GPLv3 update
Andrew Tridgell [Tue, 10 Jul 2007 05:46:05 +0000 (15:46 +1000)] 
more merges for GPLv3 update
(This used to be ctdb commit b7be4ee6c9a670cdf148fd36b092c3991a554964)

18 years agoupdate lib/events from samba4 (If->if)
Andrew Tridgell [Tue, 10 Jul 2007 05:34:00 +0000 (15:34 +1000)] 
update lib/events from samba4 (If->if)
(This used to be ctdb commit 770d1665011af0359aadb2175e9e3440e2effbf5)

18 years agoupdate lib/tdb from samba4
Andrew Tridgell [Tue, 10 Jul 2007 05:32:27 +0000 (15:32 +1000)] 
update lib/tdb from samba4
(This used to be ctdb commit 96a39ccee38bcfd64d614fe4670766e59ef246b6)

18 years agoupdate lib/replace from samba4
Andrew Tridgell [Tue, 10 Jul 2007 05:29:31 +0000 (15:29 +1000)] 
update lib/replace from samba4
(This used to be ctdb commit f0555484105668c01c21f56322992e752e831109)