diff mbox

dmraid/lib/metadata metadata.c

Message ID 20091104130636.12529.qmail@sourceware.org (mailing list archive)
State New, archived
Headers show

Commit Message

heinzm@sourceware.org Nov. 4, 2009, 1:06 p.m. UTC
None
diff mbox

Patch

--- 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) {