summaryrefslogtreecommitdiffstats
path: root/ctdb/ib
Commit message (Collapse)AuthorAgeFilesLines
* ctdb-ib: Make infiniband transport compile againAmitay Isaacs2014-05-294-5/+5
| | | | | | | | | | | | | | | | | | 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>
* Remove explicit include of lib/tevent/tevent.h.Amitay Isaacs2012-04-133-3/+0
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 0681014ca5ed2a9b56f63fdace7f894beccf8a9a)
* event: Update events to latest Samba version 0.9.8Rusty Russell2010-08-183-4/+4
| | | | | | | | | | | | | In Samba this is now called "tevent", and while we use the backwards compatibility wrappers they don't offer EVENT_FD_AUTOCLOSE: that is now a separate tevent_fd_set_auto_close() function. This is based on Samba version 7f29f817fa939ef1bbb740584f09e76e2ecd5b06. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (This used to be ctdb commit 85e5e760cc91eb3157d3a88996ce474491646726)
* Whitespace changes and using the CTDB_NO_MEMORY() macro changes toRonnie Sahlberg2009-05-213-11/+12
| | | | | | the previous patch. (This used to be ctdb commit d623ea7c04daa6349b42d50862843c9f86115488)
* add missing checks on so far ignored return valuesSumit Bose2009-05-214-2/+13
| | | | | | Most of these were found during a review by Jim Meyering <meyering@redhat.com> (This used to be ctdb commit 3aee5ee1deb4a19be3bd3a4ce3abbe09de763344)
* Test binaries now go in tests/bin and ctdb_test_env now adds thisMartin Schwenke2009-01-091-1/+1
| | | | | | | | directory to $PATH if local daemons are being used. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit a497010f67d6a8e68f4d6d7e516b88d2261b1062)
* merge from ronnieAndrew Tridgell2008-02-044-46/+46
| | | | (This used to be ctdb commit e7b57d38cf7255be823a223cf15b7526285b4f1c)
* added debug constants to allow for better mapping to syslog levelsAndrew Tridgell2008-02-044-75/+75
| | | | (This used to be ctdb commit 7ba8f1dde318eab03f4257e5a89fd23e7281e502)
* add missing ) in the IB transport (which i dont compile for)Ronnie Sahlberg2007-10-191-1/+1
| | | | (This used to be ctdb commit 7f7a184bae87d46bd589d11068b6443b007366b4)
* add a stub restart method for IBRonnie Sahlberg2007-10-191-0/+7
| | | | (This used to be ctdb commit d318504ad5a49dbdfa307be39ae88df839e6308d)
* more merges for GPLv3 updateAndrew Tridgell2007-07-107-14/+7
| | | | (This used to be ctdb commit b7be4ee6c9a670cdf148fd36b092c3991a554964)
* update lib/replace from samba4Andrew Tridgell2007-07-107-7/+7
| | | | (This used to be ctdb commit f0555484105668c01c21f56322992e752e831109)
* clean out some more cruftAndrew Tridgell2007-06-051-4/+3
| | | | (This used to be ctdb commit ad16c5fe2748b48a6f6c79976359d56d9bed33f4)
* we need to listen at transport initialise stage to find our own node numberAndrew Tridgell2007-05-301-4/+4
| | | | (This used to be ctdb commit 4a9455dfbe95e53884b46ad26dba0c33e3432ba9)
* don't start the transport connecting to the other nodes until after the ↵Andrew Tridgell2007-05-301-2/+14
| | | | | | startup event script has run (This used to be ctdb commit afca3cc74211aa2e18b1f74d36b2add8dffcfdc7)
* use /etc/services for ctdbAndrew Tridgell2007-05-291-5/+4
| | | | (This used to be ctdb commit 64bf6964ff33320c5351337c7f8ed4da5bd71275)
* fixed prev. ibwrapper_test optionsPeter Somogyi2007-04-261-1/+1
| | | | (This used to be ctdb commit 9a810d1f3201ec559d1f4f20ef4a42d7aa7090c4)
* ctdb/ib: swapped ibwrapper_tets options (-d, -a, -g)Peter Somogyi2007-04-261-4/+4
| | | | (This used to be ctdb commit 4c11d4a990b792d3bc36e062c674e9573c6de821)
* ctdb/ib: reduce debug output; allow not only ipPeter Somogyi2007-04-265-7/+53
| | | | (This used to be ctdb commit 1942c21fe7b52f2b0c8f6895bdc7efd70505a9db)
* merge from peterAndrew Tridgell2007-04-263-39/+66
|\ | | | | | | (This used to be ctdb commit ddf390da2bceb5b3f431433aec424d99d98c05f4)
| * made ofed-1.0 (and 1.1) compatible + fixed warningsPeter Somogyi2007-04-261-5/+14
| | | | | | | | (This used to be ctdb commit 43e4b83fc796b05baccfff6a34df398c821aa018)
| * fixed ctdb/ib bug at reject eventPeter Somogyi2007-04-231-15/+21
| | | | | | | | | | | | reverted my suggestion in debug.c (based on my false error detection) (This used to be ctdb commit 5c52c9f37639c65b551c10d1706c49653cd99742)
| * - ctdb/ib minor bugfixes (error case)Peter Somogyi2007-04-201-4/+4
| | | | | | | | | | | | | | - make ctdb capable of alternative connection (like ib) again, solved the fork problem - do_debug memory overwrite bugfix (occured using ibwrapper_test with wrong address given) (This used to be ctdb commit da0b84cda26d544f63841dfd770ed7ebad401944)
| * Merged tridge's ctdb branch.Peter Somogyi2007-04-191-2/+2
| |\ | |/ |/| | | (This used to be ctdb commit d9046da5219144afe68f5a376243d998e7068ccd)
| * merged tridge's branch Peter Somogyi2007-04-164-14/+14
| |\ | | | | | | | | | (This used to be ctdb commit 15e18293eaa5ddcd325395213014b5a4498ca309)
| * | ib: test scenario was wrongPeter Somogyi2007-03-291-1/+1
| | | | | | | | | | | | | | | | | | it sent message in both (or all) direction at the same time. Now it measures normal pingpong. (This used to be ctdb commit 26646aa91eb4e31efe6bacd92806ef7477b03bb7)
* | | - make he packet allocation routines take a mem_ctx, which allowsAndrew Tridgell2007-04-191-2/+2
| |/ |/| | | | | | | | | | | | | | | us to put memory directly in the right context, avoiding quite a few talloc_steal calls, and simplifying the code - make the fetch lock code in the daemon fully async (This used to be ctdb commit d98b4b4fcadad614861c0d44a3854d97b01d0f74)
* | private -> private_data for samba3Andrew Tridgell2007-04-134-14/+14
|/ | | | (This used to be ctdb commit 080b6901173afb2ad618dd0621876ff478c7d6e5)
* ib: added external send queue to workaround downtimePeter Somogyi2007-02-266-110/+266
| | | | | | | | Workaround is because I couldn't find a correct way in ib to reconnect cleanly (with queue kept) when destination is unreachable. When connection is broken, all internal queue contents are being destroyed and reconnects automatically. An "external" send queue is kept until the connection is up again for a dest node. (This used to be ctdb commit 49cac6eafb9d9c80ef1c7f0388aa7786c8be6f24)
* 1st working ib integrated ctdbPeter Somogyi2007-02-156-33/+74
| | | | | | TODO: bugfix of ctdb_bench (wants to sent via uninitialised connection - see bench_ring/dest) (This used to be ctdb commit 61516461e9d45dc7ba87518d134894fed7d7b7cd)
* ib: a trivial approach of integrationPeter Somogyi2007-02-144-35/+53
| | | | | | | TODO: bugfix (not yet complete, something happens differently than expected at tcpip when connection is refused in the beginning) (This used to be ctdb commit 330d76fb91f717d4fb8d1be29c11ddf8c25a4f1c)
* Some minor changes before integrating ib...Peter Somogyi2007-02-122-0/+645
| | | | (This used to be ctdb commit fa39ad5054de6e781ca980b9e24d22fa0c67e9ae)
* ib: fragment sent buf + many bugfixesPeter Somogyi2007-02-082-83/+198
| | | | | | | | | It came to light I have to fragment the send buffer in case destination's to fit receiver's buffers. Additionally fixed many bugs. Still testing. + TODO: clean code. (This used to be ctdb commit 2f8876f09bc92169487cb077326579044560a121)
* 2 bugfixesPeter Somogyi2007-02-011-17/+8
| | | | | | | - ibw_stop handling - ibw_send: < instead of <= (This used to be ctdb commit 4774ef7e9e33f26745346b9bfe445d913f196e81)
* Added overload test scenario + fixed 1 send queue bug.Peter Somogyi2007-01-301-2/+3
| | | | | | TODO: externize debug level (This used to be ctdb commit 98442ce3e2b3f09ca6736abfa0a8314cbdafaac7)
* Fixed a side effect of previous revert.Peter Somogyi2007-01-251-14/+17
| | | | (This used to be ctdb commit 08d013df5c6389c471036b20758463a844d33027)
* 1st "working" ib version.Peter Somogyi2007-01-252-58/+57
| | | | | | TODO: stress test, variable size messages, flood (This used to be ctdb commit 5f2a834fdcebe349aad095010ae01cce788b6482)
* ibw: modified tridge's code - in my point of viewPeter Somogyi2007-01-051-12/+33
| | | | | | | ibw_alloc_send and node-centric params are the basics of these important changes. Also tried to avoid memcpy/memdup where it was possible. (This used to be ctdb commit 9e8cb9b96c685288c04ee8b69a972f582cd3c904)
* bugfix in ibw_sendPeter Somogyi2007-01-043-14/+17
| | | | | | Forgot to allow different message pointer than beginning of an allocated buf. (This used to be ctdb commit de6f7ae87f17ab5c99f5cf369baa499cca96dee5)
* +1 ibw function +1 bugfixPeter Somogyi2007-01-032-17/+57
| | | | | | | Added ibw_cancel_send_buf to allow not sending the message after an ibw_alloc_send_buf. Renamed "n" to "len" and changed its type. (This used to be ctdb commit c8eb66296b99e528781ce05846aa86205830a1a0)
* Joining ctdb and ibwrapper (incomplete).Peter Somogyi2007-01-024-1/+295
|\ | | | | | | | | | | | | | | It compiles. TODO: modify ctdb as well. (This used to be ctdb commit a080b85a5d8e46946f8308bb6c76aa62b5a254db)
* | Added trace messages + several fixesPeter Somogyi2006-12-212-58/+106
|/ | | | (This used to be ctdb commit 7d05cb6d0d8f222d7ba1cb1fe939d06a2176f3b6)
* Added send queue.Peter Somogyi2006-12-202-62/+140
| | | | | | TODO: check again & reduce. (This used to be ctdb commit 131c41f6f3e08097e7e0fab852b2a64183c695ec)
* Made receiver handle partial packets.Peter Somogyi2006-12-202-54/+219
|\ | | | | | | (This used to be ctdb commit 808fd658552e489825fb22453755e225549ebfcc)
* | Modified send logic to allow large messages.Peter Somogyi2006-12-183-75/+129
|/ | | | | | TODO: receiver side. (This used to be ctdb commit 5ca8a53b10990a09390f174bf5eacf07fc5540c2)
* Added checks for ib libs and headersPeter Somogyi2006-12-151-0/+13
| | | | (This used to be ctdb commit 0fecfdea111f2f5d25eadce04c5f35dffca29b26)
* Made infiniband support configurable.Peter Somogyi2006-12-151-0/+18
| | | | | | | Adjusted "make distclean" NOT to remove the lib folder (again). Removed again config.h.in autogenerated file from bzr. (This used to be ctdb commit 3c264205157c8c2af03bca0051a1fe715c8470e5)
* Raw impl. of ibwrapper test tool.Peter Somogyi2006-12-141-2/+0
| | | | | | | (basic functional test, compilable, untested) Adjusted makefile and ibwrapper state checking. (This used to be ctdb commit 82410f42fe5d428eda0ba96c11774e142f672d24)
* Made ibwrapper compilable.Peter Somogyi2006-12-133-118/+114
| | | | | | | Adjusted makefile to include the project. libibverbs and librdmacm has to be installed with headers. (This used to be ctdb commit 372dc670a7aeb5887c4f24bd5466aa6a77e22f1f)
* Using struct <type> instead of typedefs.Peter Somogyi2006-12-133-128/+117
| | | | (This used to be ctdb commit d830c1ca25b13e82357f439a2ba39540f81a6ecd)