mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
f2ef23cd5f
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> |
||
---|---|---|
.. | ||
config.m4 | ||
ibw_ctdb_init.c | ||
ibw_ctdb.c | ||
ibw_ctdb.h | ||
ibwrapper_internal.h | ||
ibwrapper_test.c | ||
ibwrapper.c | ||
ibwrapper.h | ||
README.txt |
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