[DRBD-cvs] svn commit by phil - r2828 - trunk/drbd - Makes DRBD a bit more vorebose in case the lower device

drbd-cvs at lists.linbit.com drbd-cvs at lists.linbit.com
Tue Apr 3 22:06:20 CEST 2007


Author: phil
Date: 2007-04-03 22:06:19 +0200 (Tue, 03 Apr 2007)
New Revision: 2828

Modified:
   trunk/drbd/drbd_nl.c
Log:
Makes DRBD a bit more vorebose in case the lower device
is already claimed by someone else. (With this patch I was
able to find out that there where some strange dm-linear
mappings on the device I wanted to attach to DRBD...)


Modified: trunk/drbd/drbd_nl.c
===================================================================
--- trunk/drbd/drbd_nl.c	2007-04-03 19:10:04 UTC (rev 2827)
+++ trunk/drbd/drbd_nl.c	2007-04-03 20:06:19 UTC (rev 2828)
@@ -747,6 +747,11 @@
 
 	nbc->backing_bdev = inode->i_bdev;
 	if (BD_CLAIM(nbc->backing_bdev, mdev)) {
+		printk(KERN_ERR "drbd: bd_claim(%p,%p); failed [%p;%p;%u]\n",
+		       nbc->backing_bdev, mdev, 
+		       nbc->backing_bdev->bd_holder,
+		       nbc->backing_bdev->bd_contains->bd_holder,
+		       nbc->backing_bdev->bd_holders);
 		retcode=LDMounted;
 		goto fail;
 	}



More information about the drbd-cvs mailing list