Commit Graph

22 Commits

Author SHA1 Message Date
Matthew Bloch
5a5041a751 First few external tests with test/unit, some minor tidying of internal data
structures.
2012-05-24 01:39:35 +01:00
mbloch
d5d6e0f55d Pulled some duplicated code out of control.c into
read_lines_until_blankline.
2012-05-23 14:03:30 +01:00
Matthew Bloch
9c26f7f36f Split control-socket functions into separate file. 2012-05-23 00:42:14 +01:00
Matthew Bloch
811e4ab2cd Fixed mirroring to work (error reporting suspect though). 2012-05-22 00:22:06 +01:00
Matthew Bloch
7eaf5c3fd3 Initial, untested mirror implementation and resolved some type confusion
around struct ip_and_mask pointers (no idea how it worked before).  Added a
header for readwrite.h used in mirror implementation.
2012-05-21 04:03:17 +01:00
Matthew Bloch
cd6e878673 More valgrind-found bugs, extracted open_and_mmap from main code. 2012-05-21 04:00:45 +01:00
Matthew Bloch
43239feb38 Fixed some uninitialised variables courtesy of valgrind. 2012-05-21 03:59:43 +01:00
Matthew Bloch
f7ce2c0ea5 Mostly finished bitset tests, fixed test build to include utilities, remove
efence as valgrind far preferable.
2012-05-21 03:17:32 +01:00
Matthew Bloch
c94b6f365c Tweaks to bitset.h, established a C test framework. 2012-05-20 14:38:46 +01:00
Matthew Bloch
8a38cf48eb Fixed segfaulting access control, allowed change to acl via control socket. 2012-05-19 12:48:03 +01:00
Matthew Bloch
580b821f61 Added dummy control socket answering / changed serve_accept_loop to use
select() to avoid a separate listening thread.
2012-05-18 23:39:16 +01:00
mbloch
b533e4e31c Added control socket, doesn't do anything yet. 2012-05-18 18:44:34 +01:00
Matthew Bloch
f5d8e740f8 Added .hgignore file 2012-05-18 13:25:54 +01:00
Matthew Bloch
ca53d6f270 Stopped NBD writes from committing all-zero blocks to disc (tentative, needs
further testing).
2012-05-18 13:24:35 +01:00
Matthew Bloch
0432fef8f5 Split code out into separate compilation units (first pass, anyway). 2012-05-17 20:14:22 +01:00
Matthew Bloch
aec90e5244 Non-functioning commit, half-way through adding sparse bitmap feature. 2012-05-17 11:54:25 +01:00
Matthew Bloch
f688d416a5 Added write mode. 2012-05-16 11:58:41 +01:00
Matthew Bloch
b1aa942b3d Added working read via splice syscall. 2012-05-16 03:20:09 +01:00
mbloch
c796a526d0 Added Rakefile 2012-05-16 01:27:14 +01:00
mbloch
c6099f78ea Silly bug fixes, added ACL support, added parser for read/write requests. 2012-05-15 18:40:58 +01:00
Matthew Bloch
94c2d44d7d Some debugging, got it to serve. 2012-05-15 03:16:19 +01:00
Matthew Bloch
e2fbc7dcc1 It compiles :) 0.0.1 2012-05-15 02:42:03 +01:00