All of lore.kernel.org
 help / color / mirror / Atom feed
* multipath-tools/libmultipath devmapper.c
@ 2007-07-31 22:19 bmarzins
  0 siblings, 0 replies; 4+ messages in thread
From: bmarzins @ 2007-07-31 22:19 UTC (permalink / raw)
  To: dm-cvs, dm-devel

CVSROOT:	/cvs/dm
Module name:	multipath-tools
Branch: 	RHEL4_FC5
Changes by:	bmarzins@sourceware.org	2007-07-31 22:19:56

Modified files:
	libmultipath   : devmapper.c 

Log message:
	Just added some condlog messages to check for dm problems.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/libmultipath/devmapper.c.diff?cvsroot=dm&only_with_tag=RHEL4_FC5&r1=1.18&r2=1.18.2.1

--- multipath-tools/libmultipath/devmapper.c	2006/03/28 05:45:23	1.18
+++ multipath-tools/libmultipath/devmapper.c	2007/07/31 22:19:56	1.18.2.1
@@ -670,11 +670,15 @@
 
 	dm_task_no_open_count(dmt);
 
-	if (!dm_task_run(dmt))
+	if (!dm_task_run(dmt)) {
+		condlog(0, "can't get dm device list");
 		goto out;
+	}
 
-	if (!(names = dm_task_get_names(dmt)))
+	if (!(names = dm_task_get_names(dmt))){ 
+		condlog(0, "can't get dm device names\n");
 		goto out;
+	}
 
 	if (!names->dev) {
 		r = 0; /* this is perfectly valid */
@@ -689,8 +693,10 @@
 
 		mpp = alloc_multipath();
 
-		if (!mpp)
+		if (!mpp) {
+			condlog(0, "can't allocate multipath device\n");
 			goto out;
+		}
 
 		mpp->alias = STRDUP(names->name);
 
@@ -698,17 +704,21 @@
 			goto out1;
 
 		if (info > 0) {
-			if (dm_get_map(names->name, &mpp->size, mpp->params))
+			if (dm_get_map(names->name, &mpp->size, mpp->params)) {
+				condlog(0, "can't get multipath parameters\n");
 				goto out1;
-
-			if (dm_get_status(names->name, mpp->status))
+			}
+			if (dm_get_status(names->name, mpp->status)) {
+				condlog(0, "can't get multipath status\n");
 				goto out1;
-
+			}
 			dm_get_uuid(names->name, mpp->wwid);
 		}
 
-		if (!vector_alloc_slot(mp))
+		if (!vector_alloc_slot(mp)){
+			condlog(0, "can't allocate space for multipath device\n");
 			goto out1;
+		}
 
 		vector_set_slot(mp, mpp);
 		mpp = NULL;

^ permalink raw reply	[flat|nested] 4+ messages in thread
* multipath-tools/libmultipath devmapper.c
@ 2007-08-16 16:41 bmarzins
  0 siblings, 0 replies; 4+ messages in thread
From: bmarzins @ 2007-08-16 16:41 UTC (permalink / raw)
  To: dm-cvs, dm-devel

CVSROOT:	/cvs/dm
Module name:	multipath-tools
Branch: 	RHEL5_FC6
Changes by:	bmarzins@sourceware.org	2007-08-16 16:41:58

Modified files:
	libmultipath   : devmapper.c 

Log message:
	typo.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/libmultipath/devmapper.c.diff?cvsroot=dm&only_with_tag=RHEL5_FC6&r1=1.22.2.2&r2=1.22.2.3

--- multipath-tools/libmultipath/devmapper.c	2007/08/14 18:08:54	1.22.2.2
+++ multipath-tools/libmultipath/devmapper.c	2007/08/16 16:41:58	1.22.2.3
@@ -676,8 +676,7 @@
 		}
 
 		if (!vector_alloc_slot(mp)) {
-			condlog(0, "can't allocate slot for multipath
-				    device\n");
+			condlog(0, "can't allocate slot for multipath device\n");
 			goto out1;
 		}
 

^ permalink raw reply	[flat|nested] 4+ messages in thread
* multipath-tools/libmultipath devmapper.c
@ 2006-11-28 15:46 bmarzins
  0 siblings, 0 replies; 4+ messages in thread
From: bmarzins @ 2006-11-28 15:46 UTC (permalink / raw)
  To: dm-cvs, dm-devel

CVSROOT:	/cvs/dm
Module name:	multipath-tools
Changes by:	bmarzins@sourceware.org	2006-11-28 15:46:21

Modified files:
	libmultipath   : devmapper.c 

Log message:
	Added Jun'ichi Nomura's noflush suspending patch

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/libmultipath/devmapper.c.diff?cvsroot=dm&r1=1.21&r2=1.22

--- multipath-tools/libmultipath/devmapper.c	2006/11/08 21:16:58	1.21
+++ multipath-tools/libmultipath/devmapper.c	2006/11/28 15:46:21	1.22
@@ -106,6 +106,7 @@
 
 	dm_task_no_open_count(dmt);
 	dm_task_skip_lockfs(dmt);       /* for DM_DEVICE_RESUME */
+	dm_task_no_flush(dmt);		/* for DM_DEVICE_SUSPEND/RESUME */
 
 	r = dm_task_run (dmt);
 

^ permalink raw reply	[flat|nested] 4+ messages in thread
* multipath-tools/libmultipath devmapper.c
@ 2006-11-08 21:16 bmarzins
  0 siblings, 0 replies; 4+ messages in thread
From: bmarzins @ 2006-11-08 21:16 UTC (permalink / raw)
  To: dm-cvs, dm-devel

CVSROOT:	/cvs/dm
Module name:	multipath-tools
Changes by:	bmarzins@sourceware.org	2006-11-08 21:16:58

Modified files:
	libmultipath   : devmapper.c 

Log message:
	Pulled in skip_lockfs patch. This is dependent on device-mapper and kernel
	code, but that code is already inplace

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/libmultipath/devmapper.c.diff?cvsroot=dm&r1=1.20&r2=1.21

--- multipath-tools/libmultipath/devmapper.c	2006/07/13 19:49:23	1.20
+++ multipath-tools/libmultipath/devmapper.c	2006/11/08 21:16:58	1.21
@@ -105,6 +105,7 @@
 		goto out;
 
 	dm_task_no_open_count(dmt);
+	dm_task_skip_lockfs(dmt);       /* for DM_DEVICE_RESUME */
 
 	r = dm_task_run (dmt);
 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-08-16 16:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-31 22:19 multipath-tools/libmultipath devmapper.c bmarzins
  -- strict thread matches above, loose matches on Subject: below --
2007-08-16 16:41 bmarzins
2006-11-28 15:46 bmarzins
2006-11-08 21:16 bmarzins

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.