[DRBD-cvs] drbd by phil; Re-enabled that sanity check. [It was co...
drbd-user@lists.linbit.com
drbd-user@lists.linbit.com
Wed, 16 Jun 2004 09:50:43 +0200 (CEST)
DRBD CVS committal
Author : phil
Module : drbd
Dir : drbd/drbd
Modified Files:
Tag: rel-0_7-branch
drbd_actlog.c
Log Message:
Re-enabled that sanity check. [It was correct for external metadata as well,
it triggered because drbd_get_capacity() was reporting the wrong number]
===================================================================
RCS file: /var/lib/cvs/drbd/drbd/drbd/Attic/drbd_actlog.c,v
retrieving revision 1.1.2.107
retrieving revision 1.1.2.108
diff -u -3 -r1.1.2.107 -r1.1.2.108
--- drbd_actlog.c 15 Jun 2004 15:44:52 -0000 1.1.2.107
+++ drbd_actlog.c 16 Jun 2004 07:50:37 -0000 1.1.2.108
@@ -81,7 +81,7 @@
struct bio bio;
struct bio_vec vec;
struct completion event;
- //const sector_t capacity = drbd_get_capacity(mdev->this_bdev);
+ const sector_t capacity = drbd_get_capacity(mdev->this_bdev);
int ok = 0;
if (!mdev->md_bdev) {
@@ -117,14 +117,12 @@
sector, rw ? "WRITE" : "READ");
#endif
- /* This check does not handle external meta data corretly. -> Disabled.
if (sector < drbd_md_ss(mdev) ||
sector > drbd_md_ss(mdev)+MD_BM_OFFSET+BM_SECT_TO_EXT(capacity)) {
ALERT("%s [%d]:%s(,%ld,%s) out of range md access!\n",
current->comm, current->pid, __func__,
(long)sector, rw ? "WRITE" : "READ");
}
- */
#ifdef BIO_RW_SYNC
submit_bio(rw | (1 << BIO_RW_SYNC), &bio);
#else