summaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
authorSimon Rettberg2016-01-11 11:59:03 +0100
committerSimon Rettberg2016-01-11 11:59:03 +0100
commitaedf8c534195772f60e7c6409ae045fa20415aef (patch)
treeb987e1d389df2dfe6bec66b5215b94193dfcff6c /src/client
parent[FUSE] Handle SIGINT/SIGTERM to abort pending reads (diff)
downloaddnbd3-aedf8c534195772f60e7c6409ae045fa20415aef.tar.gz
dnbd3-aedf8c534195772f60e7c6409ae045fa20415aef.tar.xz
dnbd3-aedf8c534195772f60e7c6409ae045fa20415aef.zip
[KERNEL/CLIENT] Several minor tweaks and changes
- Disable panic timeout that reports errors to block layer by default - Get rid of "is_server" used by old proxy mode, introduce "honor_server_alts" that just controls whether we use alts provided by the server - Allow switching servers when we only have 3 RTT measurements - If using alts provided by server, don't ignore those that come from other servers than the initial one
Diffstat (limited to 'src/client')
-rw-r--r--src/client/client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/client.c b/src/client/client.c
index a692897..b3069fe 100644
--- a/src/client/client.c
+++ b/src/client/client.c
@@ -205,7 +205,7 @@ int main(int argc, char *argv[])
msg.host.port = htons( PORT );
msg.host.type = 0;
msg.imgname = NULL;
- msg.is_server = false;
+ msg.use_server_provided_alts = true;
int opt = 0;
int longIndex = 0;
@@ -567,7 +567,7 @@ static char* dnbd3_daemon_open(int uid, char *host, char *image, int rid, int re
msg.imgname = image;
msg.imgnamelen = strlen( image );
msg.rid = rid;
- msg.is_server = false;
+ msg.use_server_provided_alts = true;
msg.read_ahead_kb = readAhead;
if ( dnbd3_ioctl( dev, IOCTL_OPEN, &msg ) ) {
openDevices[i] = uid;