]> git.ipfire.org Git - thirdparty/samba.git/log
thirdparty/samba.git
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 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)

18 years agomerge from ronnie
Andrew Tridgell [Tue, 10 Jul 2007 04:59:23 +0000 (14:59 +1000)] 
merge from ronnie
(This used to be ctdb commit 6975042fca832aae07f84c0e9ac7fa4773b8cb51)

18 years agouse the socketkiller to kill off all lock manager sessions as well
Ronnie Sahlberg [Tue, 10 Jul 2007 03:09:35 +0000 (13:09 +1000)] 
use the socketkiller to kill off all lock manager sessions as well

(This used to be ctdb commit 980b090001ed3a77001e2a3bfc1b03833498f434)

18 years agoupdate the documentation for NFS to mention that the lock manager must
Ronnie Sahlberg [Tue, 10 Jul 2007 02:43:46 +0000 (12:43 +1000)] 
update the documentation for NFS to mention that the lock manager must
run on the same port on all nodes.

remove the CTDB_MANAGES_NFSLOCK variable that is no longer used

(This used to be ctdb commit 389a503c44c999e46caa344c4bc073336e797909)

18 years agomake it possible to specify how many times ctdb killtcp will try to RST
Ronnie Sahlberg [Tue, 10 Jul 2007 00:24:20 +0000 (10:24 +1000)] 
make it possible to specify how many times ctdb killtcp will try to RST
the tcp connection

change the 60.nfs script to run ctdb killtcp in the foreground so we
dont get lots of these running in parallel when there are a lot of tcp
connections to rst

(This used to be ctdb commit d81616214752882242f2886e94681972a790db80)

18 years agorun the ctdb killtcp in the background
Ronnie Sahlberg [Tue, 10 Jul 2007 00:07:26 +0000 (10:07 +1000)] 
run the ctdb killtcp in the background

(This used to be ctdb commit d6a514c2b3d427099ed669eef104146608378fa8)

18 years agodont restart the tcp service after a ip takeover, it is more efficient
Ronnie Sahlberg [Mon, 9 Jul 2007 23:45:14 +0000 (09:45 +1000)] 
dont restart the tcp service after a ip takeover,   it is more efficient
to just kill off the tcp connections

(This used to be ctdb commit bc481c3f1a44c50648488c4f8a7f15ec395d446f)

18 years agonicer handling of DISCONNECTED flag when we update the node flags from
Ronnie Sahlberg [Mon, 9 Jul 2007 07:40:15 +0000 (17:40 +1000)] 
nicer handling of DISCONNECTED flag  when we update the node flags from
a remote message

(This used to be ctdb commit 9a50ad22be61a09761ffda89de91ef3221917c84)

18 years agowhen a remote node has sent us a message to update the flags for a node,
Ronnie Sahlberg [Mon, 9 Jul 2007 03:21:17 +0000 (13:21 +1000)] 
when a remote node has sent us a message to update the flags for a node,
dont let those messages modify the DISCONNECTED flag.

the DISCONNECTED flag must be managed locally since it describes whether
the local node can communicate with the remote node or not

(This used to be ctdb commit 5650673205d335a32d4f27f66847ea66752a00f0)

18 years agoa better way to fix the DISCONNECT|BANNED vs DISCONNECT bug
Ronnie Sahlberg [Mon, 9 Jul 2007 02:55:15 +0000 (12:55 +1000)] 
a better way to fix the DISCONNECT|BANNED vs DISCONNECT bug

(This used to be ctdb commit 5c638d7731c5a268de02d3a37828ac7aec9a12de)

18 years agowhen checking the nodemap flags for consitency while monitoring the
Ronnie Sahlberg [Mon, 9 Jul 2007 02:33:00 +0000 (12:33 +1000)] 
when checking the nodemap flags for consitency while monitoring the
cluster,   we cant check that both the BANNED and the DISCONNECTED flags
are both set at the same time   since if a node becomes banned just
before it is DISCONNECTED   there is no guarantee that all other nodes
will have seen the BANNED flag.

So we must first check the DISCONNECTED flag only   and only if the
DISCONNECTED flag is not set should we check the BANNED flag.

othervise this can cause a recovery loop while some nodes thing the
disconnected node is DISCONNECTED|BANNED and other think it is just
DISCONNECTED

(This used to be ctdb commit 0967b2fff376ead631d98e78b3a97253fc109c69)

18 years agomerge from tridge
Ronnie Sahlberg [Sun, 8 Jul 2007 22:38:01 +0000 (08:38 +1000)] 
merge from tridge

(This used to be ctdb commit edb05db513a55ebde0ff4d9a2cb3aaebb92dc5a1)

18 years agofixed sense of inet_aton test
Andrew Tridgell [Sun, 8 Jul 2007 11:09:09 +0000 (21:09 +1000)] 
fixed sense of inet_aton test
(This used to be ctdb commit ed5cf9b43c49312d3736e85077863d23990acce8)

18 years agocall kill_clients when releasing all IPs, as well as for individual IPs
Andrew Tridgell [Sun, 8 Jul 2007 10:45:12 +0000 (20:45 +1000)] 
call kill_clients when releasing all IPs, as well as for individual IPs
(This used to be ctdb commit ad68904720eb69757601589b06726190321685ac)

18 years agowe do tell banned nodes to release IPs
Andrew Tridgell [Sun, 8 Jul 2007 10:24:03 +0000 (20:24 +1000)] 
we do tell banned nodes to release IPs
(This used to be ctdb commit 381dc0421d4d825398c03dcff4e79e3f76c3c981)

18 years agolog the generation numbers to give a hint about this bug
Andrew Tridgell [Sun, 8 Jul 2007 09:36:55 +0000 (19:36 +1000)] 
log the generation numbers to give a hint about this bug
(This used to be ctdb commit 12018494baa33c5f6c52e6eae94ac77a56d3e5a0)

18 years agoincrement rpm release number
Andrew Tridgell [Sun, 8 Jul 2007 00:41:30 +0000 (10:41 +1000)] 
increment rpm release number
(This used to be ctdb commit 2c3399f1388fdcb993d235814d59df163f501d03)

18 years agomerge from ronnie - we have an official port number, yay!
Andrew Tridgell [Fri, 6 Jul 2007 06:17:31 +0000 (16:17 +1000)] 
merge from ronnie - we have an official port number, yay!
(This used to be ctdb commit 68f9b8ea27a2fb2093fb85b8bf1a25accf69af4c)

18 years agouse the official iana number for ctdb and not 9001
Ronnie Sahlberg [Fri, 6 Jul 2007 05:29:03 +0000 (15:29 +1000)] 
use the official iana number for ctdb and not 9001

(This used to be ctdb commit f72aeb5eadb0bda97d882b5a27562bfa1bb5f5a2)

18 years agouse 'ctdb tickle' instead of sendip to tickle nfs clients.
Ronnie Sahlberg [Fri, 6 Jul 2007 01:51:34 +0000 (11:51 +1000)] 
use 'ctdb tickle' instead of sendip to tickle nfs clients.

(This used to be ctdb commit 2204cc77ce6b1dd6bb0118f57cfa05f0c8826c3e)

18 years agoremove 59.nfslock and fold this into 60.nfs
Ronnie Sahlberg [Fri, 6 Jul 2007 00:54:42 +0000 (10:54 +1000)] 
remove 59.nfslock and fold this into 60.nfs
add a 61.nfstickle script to make nfs failover faster

(This used to be ctdb commit da71fa874d49346d229307d424f889994a205c89)

18 years agomerge from tridge
Ronnie Sahlberg [Fri, 6 Jul 2007 00:48:46 +0000 (10:48 +1000)] 
merge from tridge

(This used to be ctdb commit 1385198344abb55c811edb955fbbc06bf72a1fb5)

18 years agomerge from ronnie (with spelling fixes)
Andrew Tridgell [Thu, 5 Jul 2007 05:06:42 +0000 (15:06 +1000)] 
merge from ronnie (with spelling fixes)
(This used to be ctdb commit 079a5509da961503583b5d0c1e3c7bb6fff1a700)

18 years agobreak the tickle description into two paragraphs
Ronnie Sahlberg [Thu, 5 Jul 2007 00:17:46 +0000 (10:17 +1000)] 
break the tickle description into two paragraphs

(This used to be ctdb commit 3bde3c68b965e704281c5a8c57505a7f76cd4612)

18 years agoupdate the manpage for ctdb to describe killtcp and tickle
Ronnie Sahlberg [Thu, 5 Jul 2007 00:16:11 +0000 (10:16 +1000)] 
update the manpage for ctdb to describe killtcp and tickle

(This used to be ctdb commit 4b4566ab05997c5df8ff342af223b07982b6f366)

18 years agomerge from tridge
Ronnie Sahlberg [Thu, 5 Jul 2007 00:01:35 +0000 (10:01 +1000)] 
merge from tridge

(This used to be ctdb commit edf6b476f995737fdaa8ce6b053d63286e49ced3)

18 years agofixed help layout
Andrew Tridgell [Thu, 5 Jul 2007 00:00:51 +0000 (10:00 +1000)] 
fixed help layout
(This used to be ctdb commit ee8acf166961838a3a82d658a66407ba5ccb4939)

18 years agofixed error message on bad IP/port
Andrew Tridgell [Wed, 4 Jul 2007 23:59:45 +0000 (09:59 +1000)] 
fixed error message on bad IP/port
(This used to be ctdb commit ad2d8615c028d55bc5e94c9d7bd8432cafde4a69)

18 years agomerge from ronnie
Andrew Tridgell [Wed, 4 Jul 2007 23:59:11 +0000 (09:59 +1000)] 
merge from ronnie
(This used to be ctdb commit 04fced509451018b8bb1c825b93ce344a22daacd)

18 years agoadd a command to ctdb to send tickle-ack's
Ronnie Sahlberg [Wed, 4 Jul 2007 22:56:02 +0000 (08:56 +1000)] 
add a command to ctdb to send tickle-ack's

(This used to be ctdb commit 83ddb6eaa269fbc5f235d606ee21239a7e0e23d2)

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

(This used to be ctdb commit 35d32876b41216cead039c9cd28ba9ace8cdcd61)

18 years agoforgot to add this
Andrew Tridgell [Wed, 4 Jul 2007 07:45:46 +0000 (17:45 +1000)] 
forgot to add this
(This used to be ctdb commit 30fc56b7489e42633532964096e53faee1319dde)

18 years agomerge from tridge
Ronnie Sahlberg [Wed, 4 Jul 2007 07:37:26 +0000 (17:37 +1000)] 
merge from tridge

(This used to be ctdb commit a2f3925906ba4d00e48edf87dbb57046b0430d49)

18 years agomerge from tridge
Ronnie Sahlberg [Wed, 4 Jul 2007 07:35:16 +0000 (17:35 +1000)] 
merge from tridge

(This used to be ctdb commit 39b7b8d42632a1cc78178f547d018178f3fe8313)

18 years agoremoved unused makefile var
Andrew Tridgell [Wed, 4 Jul 2007 06:52:38 +0000 (16:52 +1000)] 
removed unused makefile var
(This used to be ctdb commit 4f397c5edf4206aa33c4fe19a24557541c2f8929)

18 years ago- neaten up the command line for killtcp
Andrew Tridgell [Wed, 4 Jul 2007 06:51:13 +0000 (16:51 +1000)] 
- neaten up the command line for killtcp
- split out the event script code into a separate module
- get rid of the separate takeover directory

(This used to be ctdb commit 8ea2c923a3e2464200ff79bf2c3f1f89e6a93ad4)

18 years agomore careful checking of lengths
Andrew Tridgell [Wed, 4 Jul 2007 06:22:09 +0000 (16:22 +1000)] 
more careful checking of lengths
(This used to be ctdb commit 45662f2152a152b7160b66a857d8215348c28dc5)

18 years agomerge from ronnie
Andrew Tridgell [Wed, 4 Jul 2007 04:51:33 +0000 (14:51 +1000)] 
merge from ronnie
(This used to be ctdb commit 17158a79795abe85ea57f3dc6062751dd8856f75)

18 years agowe dont need socketkiller anymore now that the
Ronnie Sahlberg [Wed, 4 Jul 2007 04:16:28 +0000 (14:16 +1000)] 
we dont need socketkiller anymore now that the
kill-tcp-connection code is available from the ctdb tool

(This used to be ctdb commit c24890ad44b535c989bd21e83d619a1bd4825834)

18 years agoadd a killtcp command to the ctdb tool
Ronnie Sahlberg [Wed, 4 Jul 2007 04:14:48 +0000 (14:14 +1000)] 
add a killtcp command to the ctdb tool

(This used to be ctdb commit 01987b51fed0dc0b9a5e254fa734bdeb19debf6f)

18 years agoadd a new ctdb_sys_kill_tcp() function that kills (RST) the specified
Ronnie Sahlberg [Wed, 4 Jul 2007 03:53:22 +0000 (13:53 +1000)] 
add a new  ctdb_sys_kill_tcp() function that kills (RST) the specified
connection

(This used to be ctdb commit 11a972f37d4ca7daf052b3b502620af05699bec4)

18 years agochange the signature for ctdb_sys_send_ack() to ctdb_sys_send_tcp()
Ronnie Sahlberg [Wed, 4 Jul 2007 03:32:38 +0000 (13:32 +1000)] 
change the signature for ctdb_sys_send_ack() to ctdb_sys_send_tcp()
to make it possible to provide which seq/ack numbers to use and also
whether the RST flag should be set.

update all callers to the new signature

(This used to be ctdb commit b694d7d4a6f3865a18bea8f484ba690e4ae7546c)

18 years agoETH_P_IP does not work on my ubuntu system so changing it back to the
Ronnie Sahlberg [Wed, 4 Jul 2007 03:27:08 +0000 (13:27 +1000)] 
ETH_P_IP does not work on my ubuntu system   so changing it back to the
slightly less efficient ETH_P_ALL

(This used to be ctdb commit 84b8c77654b6c24928f63c801b183390824a3f6f)

18 years agomerge from ronnie
Andrew Tridgell [Wed, 4 Jul 2007 03:14:45 +0000 (13:14 +1000)] 
merge from ronnie
(This used to be ctdb commit b5510446073d6a058d11dabf92bef0e9721cd861)

18 years agomerge from tridge
Ronnie Sahlberg [Wed, 4 Jul 2007 03:13:54 +0000 (13:13 +1000)] 
merge from tridge

(This used to be ctdb commit 1a06ac66445ae0c3f18f5f0ed4fde959d235d03d)

18 years agoinitial version of a socketkiller tool
Ronnie Sahlberg [Wed, 4 Jul 2007 02:52:07 +0000 (12:52 +1000)] 
initial version of a socketkiller tool
checked in so it is not lost

this tool takes a socketpair as arguments and will reset the tcp
connection

(This used to be ctdb commit bddd448740ef7f5a88b8549a3d184a94ac9fcd96)

18 years agoadd a tuneable to control how long we wait after a successful recovery
Ronnie Sahlberg [Tue, 3 Jul 2007 22:36:59 +0000 (08:36 +1000)] 
add a tuneable to control how long we wait after a successful recovery
before we alow another recovery to be initiated

(This used to be ctdb commit f3b43519423b7a73e6a2dd986bdf11203b8653cf)

18 years agoadd more command line parsing
Ronnie Sahlberg [Tue, 3 Jul 2007 02:25:49 +0000 (12:25 +1000)] 
add more command line parsing

add the PREEMPT service action for persistent reservation out   so we
can delete someone elses registration from the lun and thus disable that
someone else from reading/writing the lun completely

(This used to be ctdb commit a31aa458f96cbe37a47af79c8d8b92c15198edaa)

18 years agomerge from tridge
Ronnie Sahlberg [Mon, 2 Jul 2007 08:41:37 +0000 (18:41 +1000)] 
merge from tridge

(This used to be ctdb commit 34f489c145ba5b717713c826df0f6cf98ec54eae)

18 years agomerge from ronnie
Andrew Tridgell [Mon, 2 Jul 2007 08:30:17 +0000 (18:30 +1000)] 
merge from ronnie
(This used to be ctdb commit 5950298254286271085b61f5b9cec065dfa52226)

18 years agoadd GPL comment to scsi_io.c
Ronnie Sahlberg [Mon, 2 Jul 2007 08:25:13 +0000 (18:25 +1000)] 
add GPL comment to scsi_io.c

(This used to be ctdb commit 747a8647862a2b915872f431a73398715208ba78)

18 years agomerge from ronnie
Andrew Tridgell [Mon, 2 Jul 2007 08:24:43 +0000 (18:24 +1000)] 
merge from ronnie
(This used to be ctdb commit a26e638fa13b6a0b9e2aea07a1712e2e1d5a6571)

18 years agostart implementing command line parsing to scsi_io to make it take
Ronnie Sahlberg [Mon, 2 Jul 2007 07:52:57 +0000 (17:52 +1000)] 
start implementing command line parsing to scsi_io to make it take
parameters that control what operations to perform

(This used to be ctdb commit 6350b353bc436a2b5a1e4c1b0bc332e83932148d)

18 years agoget rid of some compiler warnings for the scsi tool
Ronnie Sahlberg [Mon, 2 Jul 2007 06:13:31 +0000 (16:13 +1000)] 
get rid of some compiler warnings for the scsi tool

(This used to be ctdb commit 391657fe19f4359b1376a9aedb661271dfe0c542)

18 years agoadd incomplete code fragments to perform SCSI PERSISTENT RESERVATION
Ronnie Sahlberg [Mon, 2 Jul 2007 05:51:38 +0000 (15:51 +1000)] 
add incomplete code fragments to perform SCSI PERSISTENT RESERVATION
calls to a scsi device.

added to bzr so it will not be lost

we need access to an array that supports this optional cdb before we
can proceed and toolify it properly

(the idea is that ctdb should have a mechanism where it can shut out
nodes from accessing the LUNs when it has deemed a node as disconnected)

(This used to be ctdb commit 360573b505c6df8a32996efce3813fa95365a206)

18 years agorename tnode->queue to tnode->out_queue to indicate this queue is for
Ronnie Sahlberg [Mon, 2 Jul 2007 04:26:50 +0000 (14:26 +1000)] 
rename tnode->queue to tnode->out_queue to indicate this queue is for
sending data out to the other node

(This used to be ctdb commit 0bc949c529094570da56c9007ff96b1f5ad02c59)

18 years agowhen accepting an incoming connection, verify that the source address is
Ronnie Sahlberg [Mon, 2 Jul 2007 04:10:20 +0000 (14:10 +1000)] 
when accepting an incoming connection, verify that the source address is
from one of the configured nodes and reject the connection othervise

(This used to be ctdb commit ef290a6340eb1a1c0ae60c74b38c93396e388f73)

18 years agomerge from tridge
Ronnie Sahlberg [Tue, 26 Jun 2007 22:44:42 +0000 (08:44 +1000)] 
merge from tridge

(This used to be ctdb commit b6fc1a137fcc777357022d03e1c8a0889b720b1e)