2010-07-07 11:12:45 +00:00
|
|
|
From: Hannes Reinecke <hare@suse.de>
|
|
|
|
Subject: Allow zero paths for multipath priority groups
|
|
|
|
References: bnc#372684
|
|
|
|
Patch-mainline: not yet
|
|
|
|
|
|
|
|
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>
|
|
|
|
|
|
|
|
---
|
|
|
|
drivers/md/dm-mpath.c | 4 ++--
|
|
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
--- a/drivers/md/dm-mpath.c
|
|
|
|
+++ b/drivers/md/dm-mpath.c
|
2011-04-19 20:09:59 +00:00
|
|
|
@@ -870,8 +870,8 @@ static int multipath_ctr(struct dm_targe
|
2010-07-07 11:12:45 +00:00
|
|
|
{
|
|
|
|
/* 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;
|