[dm-devel] [PATCH 1/2] Allow zero priority groups

Hannes Reinecke hare at suse.de
Mon Jun 2 08:52:23 UTC 2008


Lower the number of valid priority groups to zero, as
this is a perfectly valid configuration.

Signed-off-by: Hannes Reinecke <hare at suse.de>
diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c
index e8f704a..1984f40 100644
--- a/drivers/md/dm-mpath.c
+++ b/drivers/md/dm-mpath.c
@@ -719,8 +719,8 @@ static int multipath_ctr(struct dm_target *ti, unsigned int argc,
 {
 	/* 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;




More information about the dm-devel mailing list