From 6d659475c248f5030c44acb0096771fcd09a7dee Mon Sep 17 00:00:00 2001 From: sr Date: Fri, 24 Aug 2012 20:54:29 +0200 Subject: [*] Cleanup, comments, more error checks [SERVER] Fix a few off-by-one bugs [SERVER] Make log available through IPC [KERNEL] Hot-Swap to faster connection on load-balance [KERNEL] Report I/O error to block layer if no server replies within a given time frame [*] Modified network protocol to handle volume names instead of ids --- src/kernel/net.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/kernel/net.h') diff --git a/src/kernel/net.h b/src/kernel/net.h index 64816bc..18aa227 100644 --- a/src/kernel/net.h +++ b/src/kernel/net.h @@ -23,12 +23,13 @@ #include "dnbd3.h" -#define init_msghdr(h)\ - h.msg_name = NULL;\ - h.msg_namelen = 0;\ - h.msg_control = NULL;\ - h.msg_controllen = 0;\ - h.msg_flags = MSG_WAITALL | MSG_NOSIGNAL; +#define init_msghdr(h) do { \ + h.msg_name = NULL; \ + h.msg_namelen = 0; \ + h.msg_control = NULL; \ + h.msg_controllen = 0; \ + h.msg_flags = MSG_WAITALL | MSG_NOSIGNAL; \ + } while (0) int dnbd3_net_connect(dnbd3_device_t *lo); -- cgit v1.2.3-55-g7522