Problem with INVARIANTS and WITNESS
M. Warner Losh
imp at bsdimp.com
Tue Jun 22 15:14:12 UTC 2010
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
More information about the freebsd-mips
mailing list