1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
samba-mirror/ctdb/ib
Amitay Isaacs f2ef23cd5f ctdb-ib: Make infiniband transport compile again
Update included header files and fix compilation warnings.

  ib/ibwrapper.c: In function ‘ibw_stop’:
  ib/ibwrapper.c:1015:17: warning: comparison between ‘enum ibw_state_ctx’ and ‘enum ibw_state_conn’ [-Wenum-compare]
     if (ctx->state==IBWC_ERROR || ctx->state==IBWC_CONNECTED) {
                 ^
  ib/ibwrapper.c:1015:43: warning: comparison between ‘enum ibw_state_ctx’ and ‘enum ibw_state_conn’ [-Wenum-compare]
     if (ctx->state==IBWC_ERROR || ctx->state==IBWC_CONNECTED) {

The current logic just seems wrong.  The context of this line and the
error checking in ibw_disconnect() suggest that these comparisons
should use p->state rather than ctx->state, so do that.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
2014-05-29 03:35:54 +02:00
..
config.m4 ctdb-ib: Make infiniband transport compile again 2014-05-29 03:35:54 +02:00
ibw_ctdb_init.c ctdb-ib: Make infiniband transport compile again 2014-05-29 03:35:54 +02:00
ibw_ctdb.c Remove explicit include of lib/tevent/tevent.h. 2012-04-13 17:28:14 +10:00
ibw_ctdb.h more merges for GPLv3 update 2007-07-10 15:46:05 +10:00
ibwrapper_internal.h more merges for GPLv3 update 2007-07-10 15:46:05 +10:00
ibwrapper_test.c ctdb-ib: Make infiniband transport compile again 2014-05-29 03:35:54 +02:00
ibwrapper.c ctdb-ib: Make infiniband transport compile again 2014-05-29 03:35:54 +02:00
ibwrapper.h more merges for GPLv3 update 2007-07-10 15:46:05 +10:00
README.txt use /etc/services for ctdb 2007-05-29 15:15:00 +10:00

Compilation
===========

For the configure script, please set the OFED include & library path by e.g.:

export CFLAGS="-I/usr/local/ofed/include -L/usr/local/ofed/lib"

After then:

./configure --enable-infiniband

Example for testing
===================
bin/ctdb_test --transport ib --nlist ../2nodes_rm.txt --listen 10.0.0.1
bin/ctdb_test --transport ib --nlist ../2nodes_rm.txt --listen 10.0.0.2

where 2nodes_rm.txt:
10.0.0.1
10.0.0.2