[DRBD-cvs] svn commit by phil - r2747 - trunk/drbd - For a cracy user using DRBD on top of the loop block de

drbd-cvs at lists.linbit.com drbd-cvs at lists.linbit.com
Wed Feb 7 15:58:40 CET 2007


Author: phil
Date: 2007-02-07 15:58:39 +0100 (Wed, 07 Feb 2007)
New Revision: 2747

Modified:
   trunk/drbd/drbd_actlog.c
Log:
For a cracy user using DRBD on top of the loop block device.


Modified: trunk/drbd/drbd_actlog.c
===================================================================
--- trunk/drbd/drbd_actlog.c	2007-02-07 13:55:27 UTC (rev 2746)
+++ trunk/drbd/drbd_actlog.c	2007-02-07 14:58:39 UTC (rev 2747)
@@ -84,8 +84,8 @@
 		return 0;
 	}
 
-
 	hardsect = drbd_get_hardsect(bdev->md_bdev);
+	if(hardsect == 0) hardsect = MD_HARDSECT;
 
 	// in case hardsect != 512 [ s390 only? ]
 	if( hardsect != MD_HARDSECT ) {
@@ -93,8 +93,8 @@
 			struct page *page = alloc_page(GFP_NOIO);
 			if(!page) return 0;
 
-			WARN("Meta data's bdev hardsect_size != %d\n",
-			     MD_HARDSECT);
+			WARN("Meta data's bdev hardsect = %d != %d\n",
+			     hardsect, MD_HARDSECT);
 			WARN("Workaround engaged (has performace impact).\n");
 
 			mdev->md_io_tmpp = page;



More information about the drbd-cvs mailing list