[prev in list] [next in list] [prev in thread] [next in thread] 

List:       drbd-cvs
Subject:    [DRBD-cvs] svn commit by lars - r2368 - in trunk/drbd: . linux -
From:       drbd-cvs () linbit ! com
Date:       2006-08-11 23:11:32
Message-ID: 20060811231132.A97E62D99950 () mail ! linbit ! com
[Download RAW message or body]

to avoid tru
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Author: lars
Date: 2006-08-12 01:11:31 +0200 (Sat, 12 Aug 2006)
New Revision: 2368

Modified:
   trunk/drbd/drbd_main.c
   trunk/drbd/linux/drbd_config.h
Log:
use the right prototype for _drbd_send_ack
to avoid truncating sector number to 0 ALWAYS
in case CONFIG_LBD is NOT set.

default to compile in the tracing stuff,
now we can toggle it at runtime.



Modified: trunk/drbd/drbd_main.c
===================================================================
--- trunk/drbd/drbd_main.c	2006-08-11 23:07:59 UTC (rev 2367)
+++ trunk/drbd/drbd_main.c	2006-08-11 23:11:31 UTC (rev 2368)
@@ -1521,9 +1521,9 @@
  * This helper function expects the sector and block_id parameter already
  * in big endian!
  */ 
-static int _drbd_send_ack(drbd_dev *mdev, Drbd_Packet_Cmd cmd, 
-			  sector_t sector,
-			  unsigned int blksize,
+static int _drbd_send_ack(drbd_dev *mdev, Drbd_Packet_Cmd cmd,
+			  u64 sector,
+			  u32 blksize,
 			  u64 block_id)
 {
 	int ok;

Modified: trunk/drbd/linux/drbd_config.h
===================================================================
--- trunk/drbd/linux/drbd_config.h	2006-08-11 23:07:59 UTC (rev 2367)
+++ trunk/drbd/linux/drbd_config.h	2006-08-11 23:11:31 UTC (rev 2368)
@@ -38,7 +38,7 @@
 
 // Define this to enable printing of packets under control of dump_packets
 // module parameter (/sys/module/drbd/parameters/dump_packets)
-//#define DUMP_EACH_PACKET
+#define DUMP_EACH_PACKET
 
 // Dump every hour the usage / not usage of zero copy IO
 //#define SHOW_SENDPAGE_USAGE

_______________________________________________
drbd-cvs mailing list
drbd-cvs@lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic