All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nikanth Karthikesan <knikanth@suse.de>
To: Alasdair G Kergon <agk@redhat.com>
Cc: device-mapper development <dm-devel@redhat.com>
Subject: [PATCH] Allow zero paths for multipath priority groups
Date: Wed, 8 Jul 2009 14:15:39 +0530	[thread overview]
Message-ID: <200907081415.39925.knikanth@suse.de> (raw)

From: Hannes Reinecke <hare@suse.de>
Subject: Allow zero paths for multipath priority groups

For correct handling of the all-paths-down scenario we have to
allow zero paths as a valid argument for priority groups.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Nikanth Karthikesan <hare@suse.de>

---
 drivers/md/dm-mpath.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: linux-2.6-dm/drivers/md/dm-mpath.c
===================================================================
--- linux-2.6-dm.orig/drivers/md/dm-mpath.c
+++ linux-2.6-dm/drivers/md/dm-mpath.c
@@ -787,8 +787,8 @@ static int multipath_ctr(struct dm_targe
 {
 	/* target parameters */
 	static struct param _params[] = {
-		{1, 1024, "invalid number of priority groups"},
-		{1, 1024, "invalid initial priority group number"},
+		{0, 1024, "invalid number of priority groups"},
+		{0, 1024, "invalid initial priority group number"},
 	};
 
 	int r;

             reply	other threads:[~2009-07-08  8:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-08  8:45 Nikanth Karthikesan [this message]
2009-07-20 20:37 ` [PATCH] Allow zero paths for multipath priority groups Alasdair G Kergon
2009-07-21 14:46   ` Hannes Reinecke
2009-07-21 14:55     ` Alasdair G Kergon
2009-07-22  6:08       ` Hannes Reinecke

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=200907081415.39925.knikanth@suse.de \
    --to=knikanth@suse.de \
    --cc=agk@redhat.com \
    --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.