From patchwork Wed Jul 8 08:45:39 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikanth Karthikesan X-Patchwork-Id: 34580 X-Patchwork-Delegate: agk@redhat.com Received: from hormel.redhat.com (hormel1.redhat.com [209.132.177.33]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n688mYjc012376 for ; Wed, 8 Jul 2009 08:48:34 GMT Received: from listman.util.phx.redhat.com (listman.util.phx.redhat.com [10.8.4.110]) by hormel.redhat.com (Postfix) with ESMTP id 4DEB1618BE7; Wed, 8 Jul 2009 04:48:33 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by listman.util.phx.redhat.com (8.13.1/8.13.1) with ESMTP id n688mT0W032093 for ; Wed, 8 Jul 2009 04:48:30 -0400 Received: from mx3.redhat.com (mx3.redhat.com [172.16.48.32]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n688mTuK027720; Wed, 8 Jul 2009 04:48:29 -0400 Received: from mx1.suse.de (cantor.suse.de [195.135.220.2]) by mx3.redhat.com (8.13.8/8.13.8) with ESMTP id n688mEdm017870; Wed, 8 Jul 2009 04:48:14 -0400 Received: from relay2.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 571848E8CC; Wed, 8 Jul 2009 10:48:14 +0200 (CEST) From: Nikanth Karthikesan Organization: suse.de To: Alasdair G Kergon Date: Wed, 8 Jul 2009 14:15:39 +0530 User-Agent: KMail/1.11.1 (Linux/2.6.31-rc2-0.1-default; KDE/4.2.1; x86_64; ; ) MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200907081415.39925.knikanth@suse.de> X-RedHat-Spam-Score: -5.662 X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 X-Scanned-By: MIMEDefang 2.63 on 172.16.48.32 X-loop: dm-devel@redhat.com Cc: device-mapper development Subject: [dm-devel] [PATCH] Allow zero paths for multipath priority groups X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.5 Precedence: junk Reply-To: device-mapper development List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com From: Hannes Reinecke 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 Signed-off-by: Nikanth Karthikesan --- drivers/md/dm-mpath.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel 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;