[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[dm-devel] dmraid/lib/metadata metadata.c



CVSROOT:	/cvs/dm
Module name:	dmraid
Changes by:	heinzm sourceware org	2009-11-04 13:06:36

Modified files:
	lib/metadata   : metadata.c 

Log message:
	Return error when no block devices or no RAID disks found

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/dmraid/lib/metadata/metadata.c.diff?cvsroot=dm&r1=1.7&r2=1.8

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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]