Patrick J Cherry
afa1bb0efb
Use msync rather than fsync to flush the entire disc
...
This involves storing the size of the mapped disc in the client struct,
and then supplying that to the msync command.
2018-02-05 17:01:32 +00:00
Patrick J Cherry
ad2014ac9d
Fixed long-standing bug with h2r functions being back to front
...
h2r seemd to be using beXXtoh functions instead of htobeXX. Foruntately
ROT13 works symmetrically on our systems..!
2018-02-05 16:16:17 +00:00
Patrick J Cherry
d1dc7392c2
Open file with O_NOATIME, not O_SYNC
...
O_SYNC is not necessary as we're not doing direct writes to the file.
O_NOATIME might give some speed boost.
2018-02-05 16:15:36 +00:00
Patrick J Cherry
ba59a4c03f
Updated changelog
2018-02-05 08:15:56 +00:00
Patrick J Cherry
2b58468800
Added test for FUA acceptance.
...
Although I think this might be a bit useless as servers normally just
ingore flags.
2018-02-03 20:29:15 +00:00
Patrick J Cherry
4d9db4d6e9
Added basic FLUSH test
2018-02-03 20:10:47 +00:00
Patrick J Cherry
d6057a4244
Use 'English' in ruby
2018-02-02 21:41:07 +00:00
Patrick J Cherry
1d98ba1d3e
Further rubocopping
2018-02-02 21:36:30 +00:00
Patrick J Cherry
9c48da82cc
Rubocop
2018-02-02 21:34:14 +00:00
Patrick J Cherry
1b7b688f7a
Tidied up nbd init test
2018-02-02 21:30:55 +00:00
Patrick J Cherry
3410ccd4c5
Fixed up commenting around our advertised flags.
2018-02-02 20:50:48 +00:00
Patrick J Cherry
051576df6d
Remove warnings about Object#timeout
2018-02-02 20:46:46 +00:00
Patrick J Cherry
9eb7072f49
Removed some extra spaces I'd added
2018-02-02 20:46:25 +00:00
Patrick J Cherry
6aa5907f5e
Tidied constants up a bit
2018-02-02 20:34:49 +00:00
Patrick J Cherry
72c8c6f757
Altered test to check for type as a 16-bit uint; added flags test
2018-02-02 20:30:39 +00:00
Patrick J Cherry
b22b99d9b9
Fix fill_request to set flags as well as type.
2018-02-02 20:28:00 +00:00
Patrick J Cherry
ad001cb83c
Tidy comments
2018-02-02 16:17:01 +00:00
Patrick J Cherry
f37e4438c8
Merge branch 'develop' into try-flags
2018-02-02 16:05:57 +00:00
Chris Elsworth
084d429961
Merge branch 'update-changelog-for-mr35' into 'develop'
...
Updated changelog for !35
See merge request open-source/flexnbd-c!39
2018-02-02 14:57:58 +00:00
Patrick J Cherry
1883bee43c
Updated changelog for !35
2018-02-02 14:52:26 +00:00
Patrick J Cherry
68a196e93d
Allow the proxy connection to pass through flags from upstream.
2018-02-02 10:30:40 +00:00
Patrick J Cherry
1f0ef0aad6
Implement FLUSH command and honour FUA flag
...
I changed the request struct to break the 32 bits reserved for the
request type into two. The first part of this is used for the flags
(such as FUA), and the second part for the command type. Previously
we'd masked the top two bytes, thus ignoring any flags.
2018-02-01 22:13:59 +00:00
Patrick J Cherry
25cc084108
First steps towards implementing flags as part of oldstyle negotiation
2018-02-01 19:25:36 +00:00
Patrick J Cherry
f2fa00260b
Merge branch 'avoid-crash-on-timeout' into 'develop'
...
avoid fatal error on client connection timeout
See merge request open-source/flexnbd-c!36
2018-01-26 16:04:51 +00:00
James F. Carter
b2007c9dad
debian: uodate changelog
2018-01-26 15:06:26 +00:00
James F. Carter
9b1781164a
avoid fatal error on client connection timeout
2018-01-26 15:03:44 +00:00
Ian Chilton
1f99929589
Merge branch 'develop' into 'develop'
...
Develop
See merge request open-source/flexnbd-c!35
2018-01-24 12:42:49 +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