All of lore.kernel.org
 help / color / mirror / Atom feed
* LVM2 ./WHATS_NEW daemons/clvmd/clvmd-gulm.c
@ 2008-06-20 10:58 ccaulfield
  0 siblings, 0 replies; only message in thread
From: ccaulfield @ 2008-06-20 10:58 UTC (permalink / raw)
  To: lvm-devel

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	ccaulfield at sourceware.org	2008-06-20 10:58:28

Modified files:
	.              : WHATS_NEW 
	daemons/clvmd  : clvmd-gulm.c 

Log message:
	Make clvmd return immediately if other nodes are down in a gulm cluster.
	bz#447799

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.906&r2=1.907
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/daemons/clvmd/clvmd-gulm.c.diff?cvsroot=lvm2&r1=1.22&r2=1.23

--- LVM2/WHATS_NEW	2008/06/18 11:32:14	1.906
+++ LVM2/WHATS_NEW	2008/06/20 10:58:27	1.907
@@ -1,5 +1,6 @@
 Version 2.02.39 -
 ================================
+  Make clvmd return immediately if other nodes are down in a gulm cluster.
   Improve/Fix read ahead 'auto' calculation for stripe_size
   Fix lvchange output for -r auto setting if auto is already set
   Add testcase for read ahead
--- LVM2/daemons/clvmd/clvmd-gulm.c	2007/07/24 15:35:11	1.22
+++ LVM2/daemons/clvmd/clvmd-gulm.c	2008/06/20 10:58:28	1.23
@@ -665,6 +665,7 @@
 {
     struct dm_hash_node *hn;
     struct node_info *ninfo;
+    int somedown = 0;
 
     dm_hash_iterate(hn, node_hash)
     {
@@ -686,12 +687,14 @@
 	    client = dm_hash_lookup_binary(sock_hash, csid, GULM_MAX_CSID_LEN);
 
 	}
+	DEBUGLOG("down_callback2. node %s, state = %d\n", ninfo->name, ninfo->state);
 	if (ninfo->state != NODE_DOWN)
 		callback(master_client, csid, ninfo->state == NODE_CLVMD);
 
-
+	if (ninfo->state != NODE_CLVMD)
+		somedown = -1;
     }
-    return 0;
+    return somedown;
 }
 
 /* Convert gulm error codes to unix errno numbers */



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-06-20 10:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-20 10:58 LVM2 ./WHATS_NEW daemons/clvmd/clvmd-gulm.c ccaulfield

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.