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 multipathd/copy.c multipathd/m ...
Date: 18 Aug 2009 21:12:03 -0000	[thread overview]
Message-ID: <20090818211203.28562.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/dm
Module name:	multipath-tools
Branch: 	RHEL5_FC6
Changes by:	bmarzins@sourceware.org	2009-08-18 21:12:02

Modified files:
	multipathd     : copy.c main.c 
	path_priority/pp_alua: rtpg.c 

Log message:
	Change warning messages when creating the private multipathd namespace, so that they don't scare users who don't have unneeded callouts installed.  Not
	applicable upstream.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/multipathd/copy.c.diff?cvsroot=dm&only_with_tag=RHEL5_FC6&r1=1.5.2.1&r2=1.5.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/multipathd/main.c.diff?cvsroot=dm&only_with_tag=RHEL5_FC6&r1=1.69.2.21&r2=1.69.2.22
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/path_priority/pp_alua/rtpg.c.diff?cvsroot=dm&only_with_tag=RHEL5_FC6&r1=1.3.2.4&r2=1.3.2.5

--- multipath-tools/multipathd/Attic/copy.c	2007/12/15 00:27:40	1.5.2.1
+++ multipath-tools/multipathd/Attic/copy.c	2009/08/18 21:12:01	1.5.2.2
@@ -24,7 +24,10 @@
 	fdin = open (src, O_RDONLY);
 
 	if (fdin < 0) {
-		condlog(0, "[copy.c] cannot open %s", src);
+		if (errno == ENOENT)
+			condlog(3, "callout %s does not exist, ignoring");
+		else
+			condlog(0, "[copy.c] cannot open %s", src);
 		return -1;
 	}
 	/*
--- multipath-tools/multipathd/main.c	2009/05/06 17:26:45	1.69.2.21
+++ multipath-tools/multipathd/main.c	2009/08/18 21:12:01	1.69.2.22
@@ -1338,8 +1338,11 @@
 	 */
 	vector_foreach_slot (conf->binvec, bin,i) {
 		if ((fd = open(bin, O_RDONLY)) < 0) {
-			condlog(0, "cannot open %s : %s\n", bin,
-				strerror(errno));
+			if (errno == ENOENT)
+				condlog(3, "callout %s does not exist, ignoring");
+			else
+				condlog(0, "cannot open %s : %s", bin,
+					strerror(errno));
 			continue;
 		}
 		if (fstat(fd, &statbuf) < 0) {
@@ -1368,11 +1371,8 @@
 	 * populate the ramfs with callout binaries
 	 */
 	vector_foreach_slot (conf->binvec, bin,i) {
-		if (copytodir(bin, CALLOUT_DIR) < 0) {
-			condlog(0, "cannot copy %s in ramfs : %s", bin,
-				strerror(errno));
+		if (copytodir(bin, CALLOUT_DIR) < 0)
 			continue;
-		}
 		condlog(4, "cp %s in ramfs", bin);
 	}
 	free_strvec(conf->binvec);
--- multipath-tools/path_priority/pp_alua/rtpg.c	2009/07/07 18:44:11	1.3.2.4
+++ multipath-tools/path_priority/pp_alua/rtpg.c	2009/08/18 21:12:02	1.3.2.5
@@ -269,7 +269,7 @@
 	rc = do_rtpg(fd, buf, buflen);
 	if (rc < 0)
 		goto out;
-	scsi_buflen = buf[0] << 24 | buf[1] << 16 | buf[2] << 8 | buf[3] + 4;
+	scsi_buflen = (buf[0] << 24 | buf[1] << 16 | buf[2] << 8 | buf[3]) + 4;
 	if (buflen < scsi_buflen) {
 		free(buf);
 		buf = (unsigned char *)malloc(scsi_buflen);

                 reply	other threads:[~2009-08-18 21:12 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=20090818211203.28562.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.