From patchwork Wed Nov 4 13:06:36 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: heinzm@sourceware.org X-Patchwork-Id: 57562 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 nA4D6qCC001537 for ; Wed, 4 Nov 2009 13:06:53 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 5595461B1FF; Wed, 4 Nov 2009 08:06:52 -0500 (EST) Received: from int-mx03.intmail.prod.int.phx2.redhat.com (nat-pool.util.phx.redhat.com [10.8.5.200]) by listman.util.phx.redhat.com (8.13.1/8.13.1) with ESMTP id nA4D6o3J013064 for ; Wed, 4 Nov 2009 08:06:50 -0500 Received: from mx1.redhat.com (ext-mx02.extmail.prod.ext.phx2.redhat.com [10.5.110.6]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nA4D6oaF005210 for ; Wed, 4 Nov 2009 08:06:50 -0500 Received: from sourceware.org (sourceware.org [209.132.176.174]) by mx1.redhat.com (8.13.8/8.13.8) with SMTP id nA4D6asw005584 for ; Wed, 4 Nov 2009 08:06:36 -0500 Received: (qmail 12531 invoked by uid 9450); 4 Nov 2009 13:06:36 -0000 Date: 4 Nov 2009 13:06:36 -0000 Message-ID: <20091104130636.12529.qmail@sourceware.org> From: heinzm@sourceware.org To: dm-cvs@sourceware.org, dm-devel@redhat.com X-RedHat-Spam-Score: -3.86 (AWL,RCVD_IN_DNSWL_MED) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 X-Scanned-By: MIMEDefang 2.67 on 10.5.110.6 X-loop: dm-devel@redhat.com Cc: Subject: [dm-devel] dmraid/lib/metadata metadata.c 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 --- dmraid/lib/metadata/metadata.c 2009/09/16 11:45:16 1.7 +++ dmraid/lib/metadata/metadata.c 2009/11/04 13:06:36 1.8 @@ -2096,7 +2096,7 @@ if (!count_devices(lc, DEVICE)) { log_print(lc, "no block devices found"); - return 1; + return 0; } if (!(M_RAID & p->metadata)) @@ -2118,7 +2118,7 @@ if (!OPT_HOT_SPARE_SET(lc) && !OPT_CREATE(lc) && !count_devices(lc, RAID)) { format_error(lc, "disks", argv); - return 1; + return 0; } if (M_SET & p->metadata) {