[DRBD-cvs] svn commit by phil - r2573 - in trunk: drbd drbd/linux user - Fixed two (tow) of the uncountable spelling errors ; )

drbd-cvs at lists.linbit.com drbd-cvs at lists.linbit.com
Fri Oct 27 10:10:56 CEST 2006


Author: phil
Date: 2006-10-27 10:10:54 +0200 (Fri, 27 Oct 2006)
New Revision: 2573

Modified:
   trunk/drbd/drbd_main.c
   trunk/drbd/drbd_strings.c
   trunk/drbd/linux/drbd.h
   trunk/user/drbdsetup.c
Log:
Fixed two (tow) of the uncountable spelling errors ;)


Modified: trunk/drbd/drbd_main.c
===================================================================
--- trunk/drbd/drbd_main.c	2006-10-25 11:50:54 UTC (rev 2572)
+++ trunk/drbd/drbd_main.c	2006-10-27 08:10:54 UTC (rev 2573)
@@ -541,7 +541,7 @@
 	if(inc_net(mdev)) {
 		if( !mdev->net_conf->two_primaries &&
 		    ns.role == Primary && ns.peer == Primary ) 
-			rv=SS_TowPrimaries;
+			rv=SS_TwoPrimaries;
 		dec_net(mdev);
 	}
 

Modified: trunk/drbd/drbd_strings.c
===================================================================
--- trunk/drbd/drbd_strings.c	2006-10-25 11:50:54 UTC (rev 2572)
+++ trunk/drbd/drbd_strings.c	2006-10-27 08:10:54 UTC (rev 2573)
@@ -64,7 +64,7 @@
 };
 
 static const char *drbd_state_sw_errors[] = {
-	[-SS_TowPrimaries] = "Multiple primaries now allowed by config",
+	[-SS_TwoPrimaries] = "Multiple primaries not allowed by config",
 	[-SS_NoUpToDateDisk] = 
 		"Refusing to be Primary without at least one UpToDate disk",
 	[-SS_BothInconsistent] = "Refusing to be inconsistent on both nodes",
@@ -94,6 +94,6 @@
 
 const char* set_st_err_name(set_st_err_t err) {
 	return err < SS_CW_FailedByPeer ? "TOO_SMALL" :
-	       err > SS_TowPrimaries ? "TOO_LARGE"
+	       err > SS_TwoPrimaries ? "TOO_LARGE"
 		        : drbd_state_sw_errors[-err];
 }

Modified: trunk/drbd/linux/drbd.h
===================================================================
--- trunk/drbd/linux/drbd.h	2006-10-25 11:50:54 UTC (rev 2572)
+++ trunk/drbd/linux/drbd.h	2006-10-27 08:10:54 UTC (rev 2573)
@@ -193,7 +193,7 @@
 	SS_NothingToDo=2,
 	SS_Success=1,
 	SS_UnknownError=0, // Used to sleep longer in _drbd_request_state
-	SS_TowPrimaries=-1,
+	SS_TwoPrimaries=-1,
 	SS_NoUpToDateDisk=-2,
 	SS_BothInconsistent=-4,
 	SS_SyncingDiskless=-5,

Modified: trunk/user/drbdsetup.c
===================================================================
--- trunk/user/drbdsetup.c	2006-10-25 11:50:54 UTC (rev 2572)
+++ trunk/user/drbdsetup.c	2006-10-27 08:10:54 UTC (rev 2573)
@@ -721,7 +721,7 @@
 			fprintf(stderr,"State change failed: (%d)"
 				"unknown error.\n", err_no);
 			rv = 11;
-		} else if (err_no > SS_TowPrimaries) {
+		} else if (err_no > SS_TwoPrimaries) {
 			// Ignore SS_Success, SS_NothingToDo, SS_CW_Success... 
 		} else {
 			fprintf(stderr,"State change failed: (%d) %s\n",



More information about the drbd-cvs mailing list