Commit Graph

  • 76cf2dc7b9 mirror: Only say we're unlinking the file if we actually are nick 2013-05-30 11:05:26 +01:00
  • a5a7d45355 flexnbd: Add more madvise() hints, both for mirroring out and normal operation. nick 2013-05-28 14:16:49 +01:00
  • e548cc53c8 Formatting fixup Alex Young 2013-05-01 11:02:46 +01:00
  • 151b739e8d Automated merge with ssh://dev/flexnbd-c nick 2013-04-30 15:50:09 +01:00
  • d9b3aab972 flexnbd: Pass MS_INVALIDATE to our msync calls nick 2013-04-30 11:04:17 +01:00
  • 574d44f17f Add a trivial read buffer to flexnbd-proxy. Alex Young 2013-04-29 14:50:42 +01:00
  • 33ee19dc5a flexnbd-proxy: Add UNIX socket support for the listen address nick 2013-04-15 16:52:54 +01:00
  • 4e70db8d7f readwrite.c: Set TCP_NODELAY on our NBD client sockets nick 2013-04-15 15:13:44 +01:00
  • 6984d3709e flexnbd: Don't bind() unless a bind address is specified nick 2013-04-09 11:47:32 +01:00
  • 2bb8434128 sockutil: Make sockaddr_address_string conform to its comment nick 2013-03-19 14:47:50 +00:00
  • e994b80756 proxy: Switch to blocking I/O with signal handlers to exit. nick 2013-03-19 14:39:04 +00:00
  • 5257e93cb7 flexnbd: Split the proxy mode out into its own binary. nick 2013-03-19 13:13:37 +00:00
  • 21ac3cd0ed proxy: Deal with close() failures (and EINTR errnos) comprehensively nick 2013-03-15 12:07:16 +00:00
  • f89352aa28 Add an explanatory comment in sock_try_connect() nick 2013-02-28 12:14:07 +00:00
  • 1d9f055dc7 Turn a couple of FIXME fatals in readwrite.c into warnings nick 2013-02-28 12:07:21 +00:00
  • e659a78855 proxy: Fix the return value of a function to match the comment nick 2013-02-25 15:53:19 +00:00
  • 78299de299 Dummy commit to get past a merge commit nick 2013-02-21 13:57:33 +00:00
  • 6842864e74 Automated merge with file:///home/lupine/Development/bigv-repos/flexnbd-c-sockutil nick 2013-02-15 16:53:18 +00:00
  • 98d8fbeaf0 flexnbd: Add a proxy mode nick 2013-02-15 16:52:16 +00:00
  • 9b67d30608 serve: Make some error conditions non-fatal, test them. nick 2013-02-15 16:51:28 +00:00
  • 63f7e3e8d4 Fix some sockutil tests nick 2013-02-15 16:48:23 +00:00
  • 9826dc6c65 Automated merge with ssh://dev/flexnbd-c nick 2013-02-15 13:36:15 +00:00
  • 0324d3000d branch merge nick 2013-02-15 13:35:42 +00:00
  • 91085b87fc flexnbd: Add valgrind suppressions for a bug in glibc-2.11 nick 2013-02-15 13:35:21 +00:00
  • dfa7e1a21b serve: Don't die horribly in the event of EINTR being returned by select() nick 2013-02-14 16:38:45 +00:00
  • 8281809f42 flexnbd: Fix sock_try_bind so we don't retry on EADDRINUSE nick 2013-02-14 16:37:14 +00:00
  • 03bc12dd57 flexnbd read/write: Switch to a non-blocking connect() to allow us to time these out nick 2013-02-14 16:24:10 +00:00
  • 58c4a9530b Make acceptance tests verbose by default nick 2013-02-14 11:17:44 +00:00
  • cb7eed28e7 sockutil: Add some tests for sockaddr_address_string nick 2013-02-13 15:07:30 +00:00
  • ac560bd907 serve: Refactor some socket utility code into its own module. nick 2013-02-13 13:43:52 +00:00
  • 0fcbe04f80 flexnbd: Remove some obsolete 'rebind' options nick 2013-02-13 13:11:20 +00:00
  • f63be84d80 flexnbd: Add some more information to nbdtypes.h nick 2013-02-08 17:05:22 +00:00
  • 8c04564645 flexnbd: Avoid a SIGSEGV when the allocation map fails to build. nick 2013-02-08 16:17:16 +00:00
  • ecfd108a53 Introduce socket_nbd_write_hello() and a macro to display errno results nicely nick 2013-02-08 15:53:27 +00:00
  • 56ce7d35c2 Add a debug message for cases where sendfile() fails nick 2013-02-06 14:41:49 +00:00
  • 2dd3db95bc Automated merge with file:///home/zander/00-projects/17-bigv/new-trial/src/incoming/flexnbd-c nick 2013-02-06 12:17:40 +00:00
  • 184a13bc9f Add an all-debug task to the makefile nick 2013-02-05 13:46:55 +00:00
  • 0b3a71bb03 flexnbd: Allocate the right amount of memory for a struct client nick 2013-02-05 13:27:48 +00:00
  • 719bd30071 Add a minimal Makefile that lets 'make' and 'make clean' do the Right Thing nick 2013-02-05 09:44:59 +00:00
  • 1afba29b63 flexnbd: Normalise some variable declarations nick 2013-02-01 15:20:43 +00:00
  • 7583ffbc4d flexnbd: constantize the quiet log level nick 2013-02-01 15:06:47 +00:00
  • f002b8ca1f madvise after mirroring to control the RSS Alex Young 2012-12-28 11:38:54 +00:00
  • 00d7237f66 Remove an errant debug output from test_happy_path.rb Alex Young 2012-11-21 09:26:12 +00:00
  • ed70dacf2f Don't skip parts of a file when calling fiemap Alex Young 2012-11-20 17:24:19 +00:00
  • 4f650d85c2 Fix the error message for flexnbd write --help Alex Young 2012-11-20 15:09:48 +00:00
  • dcef6d29e5 Allocate the bitset in the foreground thread. Alex Young 2012-10-09 17:54:00 +01:00
  • 22bea81445 Don't open the control socket until after the server socket is bound Alex Young 2012-10-09 17:35:20 +01:00
  • 83eb31aba4 Merge Alex Young 2012-10-09 17:28:41 +01:00
  • 161d2fccf1 Rename serve->has_control to serve->success. Alex Young 2012-10-09 17:20:39 +01:00
  • 029ebb5ef4 Fixed build_allocation_map in ioutil.c to correctly traverse fiemaps where there are more than 1000 extents in a 100MB file chunk. mbloch 2012-10-08 18:11:21 +01:00
  • a039ceffcb Merge Alex Young 2012-10-08 16:02:37 +01:00
  • 062ecca1fd Backed out changeset c25e7d82e56e Alex Young 2012-10-08 16:01:25 +01:00
  • cf62b10adf Nullcheck *before* dereferencing. Alex Young 2012-10-08 14:54:10 +01:00
  • a49cf14927 Block allocation map is now built in a separate thread, and does not delay server startup (sparse write avoidance doesn't happen until it is finished). Added mutex to bitset functions, which were already being called from multiple threads. Rewrote allocation map builder to request file information in multiple chunks, to avoid uninterruptible wait and dynamic memory allocation. Matthew Bloch 2012-10-07 21:55:01 +01:00
  • 7b13964c39 Update Rakefile to support locally-installed libcheck, removed efence, pushed -l arguments to end of link command line. Matthew Bloch 2012-10-07 02:09:34 +01:00
  • 1fa8ba82a5 Merge Alex Young 2012-10-04 14:51:54 +01:00
  • f3e0d61323 Quit with an error status on SIGTERM during migration Alex Young 2012-10-04 14:41:55 +01:00
  • 32cae67a75 flexnbd: Move building the allocation map to before server socket bind() nick 2012-09-25 11:47:44 +01:00
  • ccbfce1075 Whitespace nick 2012-09-20 13:37:48 +01:00
  • ddc57e76d1 Remove an unneeded sanity check from the tests Alex Young 2012-09-13 15:13:20 +01:00
  • 1d9c88d4ca Add the write-during-migration test to the acceptance test run Alex Young 2012-09-13 14:41:50 +01:00
  • 8b43321ef2 Fix for deadlocks when writing while migrating Alex Young 2012-09-13 12:21:43 +01:00
  • 13328910c8 Add a test case that tickles a deadlock bug when migrating active source discs nick 2012-09-12 17:13:33 +01:00
  • 50001cd6e7 Merge Alex Young 2012-09-12 15:43:15 +01:00
  • ccf5baa956 Add a -dbg package to the debian build Alex Young 2012-09-12 15:42:58 +01:00
  • ee652a2965 Fix some races in the acceptance tests nick 2012-09-11 16:21:35 +01:00
  • e724d83bec Ensure fiemap ioctl calls are synchronous. nick 2012-09-11 15:37:13 +01:00
  • 239136064a Add default empty LDFLAGS Alex Young 2012-08-24 09:32:33 +01:00
  • c3c621f750 Don't free a client which hasn't finished yet. Alex Young 2012-08-23 17:51:19 +01:00
  • c5dfe16f35 Don't close the same file descriptor more than once. Alex Young 2012-08-23 16:01:37 +01:00
  • b1a4db2727 Further merge fail fix Alex Young 2012-07-24 14:19:53 +01:00
  • 2c0f86c018 Fix a merge fail nick 2012-07-24 09:21:40 +01:00
  • 53eca40fad Fix tests broken by entrust removal Alex Young 2012-07-23 15:45:39 +01:00
  • 33f95e1986 Add the --unlink option to mirror Alex Young 2012-07-23 13:39:27 +01:00
  • fd935ce4c9 Simplify the migration handover protocol Alex Young 2012-07-23 10:22:25 +01:00
  • f6f4266fd6 Update the README for new listen behaviour Alex Young 2012-07-23 10:10:47 +01:00
  • 4790912750 Remove listen mode Alex Young 2012-07-23 09:48:50 +01:00
  • 77f4ac29c6 Include strerror(errno) in stat debug output Alex Young 2012-07-20 09:51:53 +01:00
  • b0f1a027c6 Add .INCOMPLETE file marker to flexnbd listen Alex Young 2012-07-19 17:34:20 +01:00
  • 76bbdb4889 Force gzipping the man page Alex Young 2012-07-19 17:22:25 +01:00
  • 314c0c2a2a Added the flexnbd break command to stop mirroring Alex Young 2012-07-17 16:30:49 +01:00
  • 1caa3d4e27 Make an EADDRINUSE on server bind fatal. Alex Young 2012-07-16 12:34:39 +01:00
  • 2e20e7197a Add the pid to the status output Alex Young 2012-07-16 11:50:59 +01:00
  • 8814894874 Test setting an ACL Alex Young 2012-07-16 11:38:01 +01:00
  • 66ff06fe0e Block a second mirror attempt Alex Young 2012-07-16 11:21:56 +01:00
  • db30ea0c48 Better error handling for remotes Alex Young 2012-07-16 11:04:45 +01:00
  • 9a81af5f8f Added tag 0.0.2 for changeset 99b403167181 Alex Young 2012-07-16 10:49:03 +01:00
  • 484a29b3f6 Add README.txt to the deb task code files 0.0.2 Alex Young 2012-07-16 10:29:06 +01:00
  • d0b39cce08 Flush bad write data from the client socket. Alex Young 2012-07-15 23:19:12 +01:00
  • f5850e5aaf Switch from expecting a reconnection to *not* doing do Alex Young 2012-07-15 22:07:00 +01:00
  • 10625e402b Move the mirror commit state mbox to struct control Alex Young 2012-07-15 21:57:36 +01:00
  • b20fbc6a66 Don't retry a mirror which failed on the first attempt Alex Young 2012-07-15 20:07:17 +01:00
  • a10adf007c Switch the mirror commit_signal to an mbox Alex Young 2012-07-15 19:46:35 +01:00
  • 5794913fdf Delete the MS_FINALISE mirror state Alex Young 2012-07-15 18:40:50 +01:00
  • e77234c6b1 Close the mirror client socket on rejection Alex Young 2012-07-15 18:30:20 +01:00
  • e0a61e91e6 Simplify acceptance test launching Alex Young 2012-07-15 17:14:22 +01:00
  • f7379e3278 Tweak help output for the --bind option Alex Young 2012-07-14 21:43:27 +01:00
  • a1ea2ba4c5 Add a rake task to build the man page Alex Young 2012-07-14 18:47:25 +01:00
  • 54a1409dce Added a README.txt and a man page Alex Young 2012-07-14 18:36:02 +01:00
  • f9baa95b0f Raise the log level of a write-request-out-of-range Alex Young 2012-07-14 17:27:13 +01:00