summaryrefslogtreecommitdiffstats
path: root/src/types.h
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/types.h
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/types.h')
-rw-r--r--src/types.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/types.h b/src/types.h
index 7303baa..6652a0d 100644
--- a/src/types.h
+++ b/src/types.h
@@ -86,6 +86,7 @@ typedef struct
} dnbd3_host_t;
#pragma pack(0)
+#pragma pack(1)
typedef struct
{
uint16_t len;
@@ -94,8 +95,9 @@ typedef struct
char *imgname;
int rid;
int read_ahead_kb;
- uint8_t is_server; // FALSE = automatic (real client), TRUE = manual control (proxy)
+ uint8_t use_server_provided_alts;
} dnbd3_ioctl_t;
+#pragma pack(0)
// network
#define CMD_GET_BLOCK 1