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

[Cluster-devel] cluster/cmirror/src functions.c



CVSROOT:	/cvs/cluster
Module name:	cluster
Branch: 	RHEL5
Changes by:	jbrassow sourceware org	2007-12-06 22:12:21

Modified files:
	cmirror/src    : functions.c 

Log message:
	- Bug 384901: RHEL5 cmirror tracker: unable to create a --nosync mirror
	
	- fix argument counting.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cmirror/src/functions.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.1.2.5&r2=1.1.2.6

--- cluster/cmirror/src/Attic/functions.c	2007/11/28 20:34:22	1.1.2.5
+++ cluster/cmirror/src/Attic/functions.c	2007/12/06 22:12:21	1.1.2.6
@@ -396,9 +396,9 @@
 	if (!strtoll(argv[0], &p, 0) || *p) {
 		disk_log = 1;
 
-		if ((argc < 3) || (argc > 4)) {
+		if ((argc < 4) || (argc > 5)) {
 			LOG_ERROR("Too %s arguments to clustered_disk log type",
-				  (argc < 3) ? "few" : "many");
+				  (argc < 4) ? "few" : "many");
 			r = -EINVAL;
 			goto fail;
 		}
@@ -412,9 +412,9 @@
 	} else {
 		disk_log = 0;
 
-		if ((argc < 2) || (argc > 3)) {
+		if ((argc < 3) || (argc > 4)) {
 			LOG_ERROR("Too %s arguments to clustered_core log type",
-				  (argc < 2) ? "few" : "many");
+				  (argc < 3) ? "few" : "many");
 			r = -EINVAL;
 			goto fail;
 		}


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