[DRBD-cvs] svn commit by phil - r2200 - trunk/user - Fixed another stupid bug.

drbd-cvs at lists.linbit.com drbd-cvs at lists.linbit.com
Thu May 18 14:57:20 CEST 2006


Author: phil
Date: 2006-05-18 14:57:18 +0200 (Thu, 18 May 2006)
New Revision: 2200

Modified:
   trunk/user/drbdmeta.c
Log:
Fixed another stupid bug.


Modified: trunk/user/drbdmeta.c
===================================================================
--- trunk/user/drbdmeta.c	2006-05-17 15:41:28 UTC (rev 2199)
+++ trunk/user/drbdmeta.c	2006-05-18 12:57:18 UTC (rev 2200)
@@ -911,6 +911,10 @@
 		printf("la-size-sect was too big, fixed.\n");
 		cfg->md.la_sect = cfg->md_offset/512;
 	}
+	if(cfg->md.bm_bytes_per_bit == 0 ) {
+		printf("bm-byte-per-bit was 0, fixed. (Set to 4096)\n");
+		cfg->md.bm_bytes_per_bit = 4096;
+	}
 	words = bm_words(cfg->md.la_sect, cfg->md.bm_bytes_per_bit);
 	cfg->bm_bytes = words * sizeof(long);
 



More information about the drbd-cvs mailing list