[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[dm-devel] [PATCH] Allow zero paths for multipath priority groups
- From: Nikanth Karthikesan <knikanth suse de>
- To: Alasdair G Kergon <agk redhat com>
- Cc: device-mapper development <dm-devel redhat com>
- Subject: [dm-devel] [PATCH] Allow zero paths for multipath priority groups
- Date: Wed, 8 Jul 2009 14:15:39 +0530
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;
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]