All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Allow zero paths for multipath priority groups
@ 2009-07-08  8:45 Nikanth Karthikesan
  2009-07-20 20:37 ` Alasdair G Kergon
  0 siblings, 1 reply; 5+ messages in thread
From: Nikanth Karthikesan @ 2009-07-08  8:45 UTC (permalink / raw)
  To: Alasdair G Kergon; +Cc: device-mapper development

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;

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

end of thread, other threads:[~2009-07-22  6:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-08  8:45 [PATCH] Allow zero paths for multipath priority groups Nikanth Karthikesan
2009-07-20 20:37 ` 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

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.