[DRBD-cvs] svn commit by phil - r2532 - trunk/user - Relaxed drbdsetup's NL timeout from 300 ms to 5 seconds

drbd-cvs at lists.linbit.com drbd-cvs at lists.linbit.com
Mon Oct 16 11:10:04 CEST 2006


Author: phil
Date: 2006-10-16 11:10:04 +0200 (Mon, 16 Oct 2006)
New Revision: 2532

Modified:
   trunk/user/drbdsetup.c
Log:
Relaxed drbdsetup's NL timeout from 300 ms to 5 seconds.


Modified: trunk/user/drbdsetup.c
===================================================================
--- trunk/user/drbdsetup.c	2006-10-13 14:46:58 UTC (rev 2531)
+++ trunk/user/drbdsetup.c	2006-10-16 09:10:04 UTC (rev 2532)
@@ -123,8 +123,8 @@
 
 
 // Connector functions
-#define NL_TRIES 3
-#define NL_TIME 300
+#define NL_TRIES 5
+#define NL_TIME 5000
 int open_cn();
 int send_cn(int sk_nl, struct nlmsghdr* nl_hdr, int size);
 int receive_cn(int sk_nl, struct nlmsghdr* nl_hdr, int size, int timeout_ms);
@@ -1592,7 +1592,8 @@
 
 int main(int argc, char** argv)
 {
-	int minor,drbd_fd,lock_fd;
+	int minor;
+	// int drbd_fd,lock_fd;
 	struct drbd_cmd *cmd;
 	int rv=0;
 



More information about the drbd-cvs mailing list