Commit Graph

241 Commits

Author SHA1 Message Date
Matthew Bloch
08f3d42b34 Improved fuzz test to find an actual code bug (previous bug was in the test
<g>).
2012-06-07 02:06:08 +01:00
Matthew Bloch
9fc3c061f8 Fixed arguments to debug function. 2012-06-07 01:15:29 +01:00
Matthew Bloch
8cf1a515dd Missing break; in switch statement (verbose was setting default deny!) 2012-06-07 00:01:11 +01:00
Alex Young
cfa9f9c71f Fix the sense of client_serve_request 2012-06-06 14:25:35 +01:00
Alex Young
e8b47d5855 Remove the accept lock as being unneeded 2012-06-06 14:07:55 +01:00
Alex Young
1fc76ad77f Merge 2012-06-06 13:44:49 +01:00
Alex Young
16001eb9eb Move checking for a closed client out of server_lock_io and into client_serve_request 2012-06-06 13:44:38 +01:00
nick
648f768ff6 tests: fix the Ruby flexnbd wrapper for mirror 2012-06-06 13:33:24 +01:00
Alex Young
1b289a0e87 Change io lock and unlock to server error on failure 2012-06-06 13:29:13 +01:00
Alex Young
9dbc0a31a8 Better error message 2012-06-06 13:19:24 +01:00
Alex Young
339e766339 Use self_pipe for close_signal 2012-06-06 12:41:03 +01:00
nick
14c9468b68 Automated merge with ssh://dev/flexnbd-c 2012-06-06 12:35:18 +01:00
nick
7544a59da1 mirror: Add --bind to our mirror mode.
Mirroring doesn't actually work yet, of course.
2012-06-06 12:35:01 +01:00
nick
f4a403842d flexnbd: Fix specifying -d as --default-deny on the command line 2012-06-06 12:07:40 +01:00
Alex Young
457987664a Renamed struct client_params to struct client 2012-06-06 11:33:17 +01:00
Alex Young
40279bc9ca Split client-specific code into client.{c,h} 2012-06-06 11:27:52 +01:00
Alex Young
d22471d195 Fix a \#define symbol 2012-06-06 10:55:50 +01:00
Alex Young
a80c5ce6b5 Moved sockaddr_address_data to serve.c and renamed params.h to serve.h 2012-06-06 10:45:07 +01:00
Alex Young
cc97dd4842 Rename control to control_fd and struct mode_serve_params to struct server 2012-06-06 10:35:50 +01:00
Alex Young
a0990b824c Merge 2012-06-06 10:24:33 +01:00
Alex Young
d7fa05d42c Backed out changeset 0cbb8e9cf515 because it breaks deb packaging. 2012-06-06 10:24:04 +01:00
Alex Young
78b1879cab Merge 2012-06-06 10:19:59 +01:00
Alex Young
059be22c27 Rename int server to int server_fd in mode_serve_params 2012-06-06 10:19:45 +01:00
nick
15513c03df Remove a duplicated line due to the last merge 2012-06-06 10:05:12 +01:00
nick
682f3c70ef Automated merge with ssh://dev/flexnbd-c 2012-06-06 10:03:46 +01:00
nick
3e0628e2fc flexnbd: Re-add --sock to flexnbd mirror 2012-06-06 09:55:47 +01:00
nick
8a2fd06c31 flexnbd: Add --bind to flexnbd read and flexnbd write 2012-06-06 09:55:08 +01:00
Matthew Bloch
60cb089e45 Added fuzzer which currently exposes ugly bug with unaligned writes. 2012-06-06 01:28:54 +01:00
Matthew Bloch
d981dde8d1 Fixed FlexNBD#serve parameters, added detection of non-starting server. 2012-06-06 01:28:30 +01:00
Matthew Bloch
2245385117 Added msync() call after every write - not sure whether it's necessary yet. 2012-06-06 01:27:37 +01:00
Matthew Bloch
29151b8a78 Isolated missing library code to pkg:deb task - couldn't locate library code
(must be available from Debian, or bundled).
2012-06-05 23:46:28 +01:00
Alex Young
d87d7a826f Rename the 'debug' cli option 'verbose' and switch default-deny from 'D' to 'd' 2012-06-01 16:58:32 +01:00
Alex Young
8511cacb03 Make sure the -d short option is honoured 2012-06-01 16:47:34 +01:00
Alex Young
29937cdcf9 Merge 2012-06-01 16:25:41 +01:00
Alex Young
1ddb3bb609 Add a self_pipe set of convenience functions 2012-06-01 16:25:27 +01:00
Alex Young
91ab715659 Indentation fix 2012-06-01 16:24:50 +01:00
nick
b985e97098 Automated merge with ssh://dev/flexnbd-c 2012-06-01 14:51:43 +01:00
nick
04d67b3bab acls: Add a default-deny option, which allows you to specify what an empty ACL means.
When this option is specified, an empty ACL means "reject all clients". Without it,
an empty ACL means "accept all clients"
2012-06-01 14:48:34 +01:00
Alex Young
9dbb107bf8 Use nbdtypes to write the nbd hello message 2012-05-31 20:33:42 +01:00
Alex Young
17ed766c74 Null-terminated strings strike again 2012-05-31 18:04:57 +01:00
Alex Young
185a840e03 Factor out the bulk of client_serve_request, and add convenience converters in src/nbdtypes.c 2012-05-31 17:44:11 +01:00
Alex Young
949d7d6a72 Don't check for the INCOMPLETE file on read 2012-05-31 14:11:57 +01:00
Alex Young
1aec12613c Ditch a couple of unneeded variables to silence gcc warnings 2012-05-31 14:09:35 +01:00
Alex Young
b90b73fba6 build and default rake tasks, because I keep trying to type them 2012-05-31 14:01:49 +01:00
Alex Young
49c4ef7c56 Add .orig merge files to .hgignore 2012-05-31 13:55:35 +01:00
Alex Young
81fe41f016 Merge 2012-05-31 13:53:21 +01:00
Alex Young
074efd9fa4 Add a no-op debug() define for non-debug builds and make valgrind optional in nbd_scenarios 2012-05-31 13:53:04 +01:00
Alex Young
c2d1414bff Merge 2012-05-31 13:32:56 +01:00
Alex Young
623a398767 Add a --debug flag for DEBUG builds
If you compile with:

  DEBUG=true rake build

then all the commands get a --debug flag as an option which will make
the server dump crazy amounts of data to stderr.
2012-05-31 13:31:22 +01:00
Alex Young
268bebd408 Run the nbd_scenario tests under valgrind 2012-05-31 13:23:12 +01:00