Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jun 2010 09:11:06 -0600 (MDT)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        freebsd@luftivennad.com
Cc:        freebsd-mips@FreeBSD.org
Subject:   Re: Problem with INVARIANTS and WITNESS
Message-ID:  <20100622.091106.637512345276601123.imp@bsdimp.com>
In-Reply-To: <27670c29041b59dc0a95514c6a0b86d7.squirrel@webmail.equix.ee>
References:  <27670c29041b59dc0a95514c6a0b86d7.squirrel@webmail.equix.ee>

next in thread | previous in thread | raw e-mail | index | archive | help
P.S.  You might try the following patch to get more info about who is
making the request.

Index: geom_io.c
===================================================================
--- geom_io.c	(revision 209268)
+++ geom_io.c	(working copy)
@@ -424,8 +424,8 @@
 	}
 	if (bp->bio_cmd & (BIO_READ|BIO_WRITE|BIO_DELETE)) {
 		KASSERT(bp->bio_offset % cp->provider->sectorsize == 0,
-		    ("wrong offset %jd for sectorsize %u",
-		    bp->bio_offset, cp->provider->sectorsize));
+		    ("wrong offset %jd for sectorsize %u (geom %s)",
+		    bp->bio_offset, cp->provider->sectorsize), cp->geom->name);
 		KASSERT(bp->bio_length % cp->provider->sectorsize == 0,
 		    ("wrong length %jd for sectorsize %u",
 		    bp->bio_length, cp->provider->sectorsize));

Warner



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100622.091106.637512345276601123.imp>