]>
Commit | Line | Data |
---|---|---|
2cb7cef9 BS |
1 | From: Hannes Reinecke <hare@suse.de> |
2 | Subject: Allow zero paths for multipath priority groups | |
3 | References: bnc#372684 | |
4 | ||
5 | For correct handling of the all-paths-down scenario we have to | |
6 | allow zero paths as a valid argument for priority groups. | |
7 | ||
8 | Signed-off-by: Hannes Reinecke <hare@suse.de> | |
9 | ||
10 | --- | |
11 | drivers/md/dm-mpath.c | 4 ++-- | |
12 | 1 file changed, 2 insertions(+), 2 deletions(-) | |
13 | ||
14 | --- a/drivers/md/dm-mpath.c | |
15 | +++ b/drivers/md/dm-mpath.c | |
16 | @@ -779,8 +779,8 @@ static int multipath_ctr(struct dm_targe | |
17 | { | |
18 | /* target parameters */ | |
19 | static struct param _params[] = { | |
20 | - {1, 1024, "invalid number of priority groups"}, | |
21 | - {1, 1024, "invalid initial priority group number"}, | |
22 | + {0, 1024, "invalid number of priority groups"}, | |
23 | + {0, 1024, "invalid initial priority group number"}, | |
24 | }; | |
25 | ||
26 | int r; |