Patrick J Cherry
cc69752394
Use correct constant name.
2018-02-12 19:11:47 +00:00
Patrick J Cherry
af2bee79fc
Update proxy malloc to add the struct size onto the request/response buffer
...
This alters the meaning of NBD_MAX_SIZE to be the actual max request size
we'll accept over nbd. Previously it was *nearly* the max size we'd
accept depending on the size of the struct.
2018-02-12 19:08:27 +00:00
Chris Cottam
c37627a5b9
not high enough, trying 32MB
2018-01-18 17:08:32 +00:00
Chris Cottam
ceb3328261
increasing the NBD max size to see if it fixes an issue with qemu-2.11.0
2018-01-18 16:52:24 +00:00
Patrick J Cherry
61940bdfc5
Merge branch '34-logging-should-include-the-id-of-the-disc-that-is-being-served' into 'develop'
...
add a log_context, a string output as part of any log message
Closes #34
See merge request open-source/flexnbd-c!34
2018-01-11 10:35:45 +00:00
James F. Carter
6d96d751d8
debian: update changelog
2018-01-11 10:06:03 +00:00
James F. Carter
fa75de0a8b
proxy sets the upstream address and port as its log context
2018-01-11 10:04:18 +00:00
James F. Carter
1cb11bfd38
serve sets the disc's backing file as its log context
2018-01-11 10:03:16 +00:00
James F. Carter
2702e73a26
add a log_context, a string output as part of any log message
2018-01-11 10:01:42 +00:00
Patrick J Cherry
dbf50046a8
Merge branch '33-tcp-keepalive-should-be-applied-to-connection-so-that-dead-connections-can-be-properly-reaped' into 'develop'
...
apply tcp keepalive to serving sockets
Closes #33
See merge request open-source/flexnbd-c!33
2018-01-10 17:51:02 +00:00
James F. Carter
d62b069ce4
debian: update changelog
2018-01-10 13:58:11 +00:00
James F. Carter
884a714744
whitespace fix
2018-01-10 13:55:05 +00:00
James F. Carter
0c668f1776
remember how || works in C
2018-01-10 13:54:26 +00:00
James F. Carter
1d5b315f17
apply tcp keepalive to serving sockets
2018-01-10 13:49:22 +00:00
Patrick J Cherry
24f1e62a73
Merge branch 'release' into 'develop'
...
Merge changelog back to develop
See merge request !32
2017-07-14 17:41:51 +01:00
Chris Elsworth
5c37cba39b
New release
2017-07-14 17:03:56 +01:00
James F. Carter
59f264184b
Merge pull request #1 from BytemarkHosting/better-stats
...
Calculate and return bytes_left in migration statistics
2017-07-14 16:36:50 +01:00
Chris Elsworth
42d206cfb7
Update test
2017-07-14 16:26:25 +01:00
Chris Elsworth
ab3106202a
Also return migration_bytes_left
2017-07-14 16:18:34 +01:00
James Carter
e04dead5ce
Merge branch 'update-changelog' into 'develop'
...
Updated changelog.
See merge request !30
2017-04-13 12:52:00 +01:00
Patrick J Cherry
88bc5f0643
Updated changelog.
2017-04-13 12:49:55 +01:00
James Carter
e89c87e2b9
Merge branch 'fix-compiler-flags' into 'develop'
...
Remove lots of per-cpu compiler flags.
See merge request !28
2017-02-23 12:11:25 +00:00
Patrick J Cherry
9d2ac3f403
Remove lots of per-cpu compiler flags.
...
These flags appear to cause SIGILL when flexnbd starts on some CPUs.
2017-02-22 17:52:52 +00:00
James Carter
67823bf85b
Merge branch '32-package-and-publish-in-gitlab-ci-retire-maker2-job' into 'master'
...
Resolve "package and publish in gitlab-ci - retire maker2 job"
Closes #32 and #21
See merge request !27
2017-01-23 14:04:43 +00:00
Patrick J Cherry
17d30b86ad
Updated build-deps to have libsubunit and ruby-test-unit
2017-01-23 14:00:09 +00:00
Patrick J Cherry
b97bcd6f51
Don't test separately from packaging. Also use correct source "format"
2017-01-23 13:58:04 +00:00
Patrick J Cherry
4d3c15a4d0
Switch to native from quilted packaging
2017-01-23 13:52:22 +00:00
Patrick J Cherry
83d6872a8d
Add ruby test dependency
2017-01-23 13:48:19 +00:00
Patrick J Cherry
ab8470aef3
Modernise gitlab-ci
2017-01-23 13:46:42 +00:00
Patrick J Cherry
716df32fd6
Merge remote-tracking branch 'origin/debian' into 32-package-and-publish-in-gitlab-ci-retire-maker2-job
2017-01-23 13:44:44 +00:00
Michel Pollet
1a768d5e9c
Merge branch '29-fix-linker-issue' into 'master'
...
Link against subunit for testing.
This fixes the problems in Debian stretch+.
Closes #29
See merge request !26
2016-10-13 16:47:37 +01:00
Patrick J Cherry
72992c76ac
Added libsubunit to the gitlab-ci
2016-10-13 16:42:21 +01:00
Patrick J Cherry
cace8123f4
Link against subunit for testing.
...
This fixes the problems in Debian stretch+.
2016-10-13 16:39:20 +01:00
Patrick J Cherry
c3b241464a
Updated changelog
debian/0.1.5-1
2016-10-07 12:26:52 +01:00
Patrick J Cherry
4f956e4b9d
Merge branch 'master' of gitlab.bytemark.co.uk:open-source/flexnbd-c into debian
2016-10-07 12:24:51 +01:00
James Carter
b4cb2d9240
Merge branch 'fix-wrong-handle-type' into 'master'
...
Fix up "wrong" handle type from char* to uint64_t
Following from the NBD handle comparison simplifications.
See merge request !25
0.1.5
2016-10-07 10:20:35 +01:00
James Carter
1efb7bada6
Merge branch 'fix-unsigned-longs-in-bitset-test' into 'master'
...
fix check_bitset test on 32-bit platforms
The use of `unsigned long` and `UL` suffices caused this test to fail
on 32 bit platforms, where these are just 4, not 8 bits long.
```
tests/unit/check_bitset.c:73:F:bit:test_bit_ranges:0: longs[32] = 0 SHOULD BE ffffffff
```
See merge request !24
2016-10-07 10:20:08 +01:00
James Carter
6bc2a4c0b9
Merge branch 'fix-cast-from-pointer-to-wrong-size-integer-in-serve' into 'master'
...
This fixes the compiler warning pointer-to-int-cast in serve.c
```
In file included from src/server/bitset.h:4:0,
from src/server/mirror.h:8,
from src/server/flexnbd.h:5,
from src/server/serve.h:8,
from src/server/serve.c:1:
src/server/serve.c: In function 'tryjoin_client_thread':
src/server/serve.c:258:6: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(uint64_t)status);
^
```
See merge request !23
2016-10-07 09:59:24 +01:00
James Carter
59de76c50c
Merge branch 'skip-large-file-test-on-i386' into 'master'
...
Skip large file test on 32-bit platforms
This test cannot run on 32-bit machines as they cannot access files
large than 2G. Makes flexnbd on 32-bit a bit useless really..
See merge request !22
2016-10-07 09:57:09 +01:00
Patrick J Cherry
209da655b3
Skip large file test on 32-bit platforms
...
This test cannot run on 32-bit machines as they cannot access files
large than 2G. Makes flexnbd on 32-bit a bit useless really..
2016-10-06 21:42:52 +01:00
Patrick J Cherry
52b45e6b40
fix check_bitset test on 32-bit platforms
...
The use of `unsigned long` and `UL` suffices caused this test to fail
on 32 bit platforms, where these are just 4, not 8 bits long.
```
tests/unit/check_bitset.c:73:F:bit:test_bit_ranges:0: longs[32] = 0 SHOULD BE ffffffff
```
2016-10-06 21:22:53 +01:00
Patrick J Cherry
d279eb7570
Fix up "wrong" handle type from char* to uint64_t
...
Following from the NBD handle comparison simplifications.
2016-10-06 21:19:15 +01:00
Patrick J Cherry
c07df76ede
This fixes the compiler warning pointer-to-int-cast in serve.c
...
```
In file included from src/server/bitset.h:4:0,
from src/server/mirror.h:8,
from src/server/flexnbd.h:5,
from src/server/serve.h:8,
from src/server/serve.c:1:
src/server/serve.c: In function 'tryjoin_client_thread':
src/server/serve.c:258:6: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(uint64_t)status);
^
```
2016-10-06 21:16:07 +01:00
Patrick J Cherry
e7e99b099c
Updated debian packaging, adding in new build-deps.
debian/0.1.4-1
2016-10-06 16:02:15 +01:00
Patrick J Cherry
b2edd0734a
Merge branch 'master' of gitlab.bytemark.co.uk:open-source/flexnbd-c into debian
2016-10-06 16:00:14 +01:00
James Carter
e19d005636
Merge branch '26-fix-function-definition' into 'master'
...
OK removed the cast and fixed the function def in the test
This should definitely clear the warning.
Closes #26
See merge request !21
2016-10-06 15:59:57 +01:00
Patrick J Cherry
d1e6e835c4
OK removed the cast and fixed the function def in the test
...
This should definitely clear the warning.
0.1.4
2016-10-06 15:56:57 +01:00
Patrick J Cherry
8fed794fe7
Merge branch 'master' of gitlab.bytemark.co.uk:open-source/flexnbd-c into debian
2016-10-06 15:47:25 +01:00
James Carter
e24efa9864
Merge branch '26-fix-compiler-warning' into 'master'
...
Resolve "tests/unit/check_readwrite.c causes compiler warnings"
Closes #26
See merge request !20
2016-10-06 15:46:41 +01:00
James Carter
3134d619ef
Merge branch '27-fix-make-test' into 'master'
...
Update Makefile to specify dependencies properly for tests
Closes #27
See merge request !19
2016-10-06 15:44:46 +01:00