All of lore.kernel.org
 help / color / mirror / Atom feed
From: bmarzins@sourceware.org
To: dm-cvs@sourceware.org, dm-devel@redhat.com
Subject: multipath-tools libmultipath/structs_vec.c mul ...
Date: 26 Mar 2009 03:28:10 -0000	[thread overview]
Message-ID: <20090326032810.5957.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/dm
Module name:	multipath-tools
Branch: 	RHEL5_FC6
Changes by:	bmarzins@sourceware.org	2009-03-26 03:28:10

Modified files:
	libmultipath   : structs_vec.c 
	multipathd     : main.c 

Log message:
	Fix for bz #452897
	Make sure that multipath modifying a map doesn't clear out the map's hardware
	entry.  Not applicable to upstream.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/libmultipath/structs_vec.c.diff?cvsroot=dm&only_with_tag=RHEL5_FC6&r1=1.1.2.3&r2=1.1.2.4
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/multipathd/main.c.diff?cvsroot=dm&only_with_tag=RHEL5_FC6&r1=1.69.2.14&r2=1.69.2.15

--- multipath-tools/libmultipath/structs_vec.c	2008/09/04 20:09:48	1.1.2.3
+++ multipath-tools/libmultipath/structs_vec.c	2009/03/26 03:28:09	1.1.2.4
@@ -377,10 +377,16 @@
 		/*
 		 * see if path is in sysfs
 		 */
-		if (!pp->dev || sysfs_get_dev(sysfs_path,
-				  pp->dev, pp->dev_t, BLK_DEV_SIZE)) {
-			condlog(0, "%s: failed to access path %s", mpp->alias,
-				pp->dev ? pp->dev : pp->dev_t);
+		if (!(*pp->dev) ||
+		    sysfs_get_dev(sysfs_path, pp->dev, pp->dev_t,
+				  BLK_DEV_SIZE)) {
+			if (!(*pp->dev))
+				condlog(3,
+					"%s: removing path %s with no devname",
+					mpp->alias, pp->dev_t);
+			else
+				condlog(0, "%s: failed to access path %s",
+					mpp->alias, pp->dev);
 			count++;
 			vector_del_slot(mpp->paths, i);
 			i--;
--- multipath-tools/multipathd/main.c	2008/09/19 03:27:08	1.69.2.14
+++ multipath-tools/multipathd/main.c	2009/03/26 03:28:09	1.69.2.15
@@ -411,6 +411,7 @@
 			return 1; /* leave path added to pathvec */
 
 		verify_paths(mpp, vecs, NULL);
+		mpp->hwe = pp->hwe;
 		mpp->flush_on_last_del = FLUSH_UNDEF;
 		mpp->action = ACT_RELOAD;
 	}

                 reply	other threads:[~2009-03-26  3:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090326032810.5957.qmail@sourceware.org \
    --to=bmarzins@sourceware.org \
    --cc=dm-cvs@sourceware.org \
    --cc=dm-devel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.