Index: geom_dev.c =================================================================== RCS file: /private/FreeBSD/src/sys/geom/geom_dev.c,v retrieving revision 1.80 diff -u -p -r1.80 geom_dev.c --- geom_dev.c 24 Sep 2004 06:43:20 -0000 1.80 +++ geom_dev.c 27 Sep 2004 21:58:58 -0000 @@ -347,6 +347,12 @@ g_dev_strategy(struct bio *bp) KASSERT(cp->acr || cp->acw, ("Consumer with zero access count in g_dev_strategy")); + if ((bp->bio_offset % cp->provider->sectorsize) != 0 || + (bp->bio_bcount % cp->provider->sectorsize) != 0) { + biofinish(bp, NULL, EINVAL); + return; + } + for (;;) { /* * XXX: This is not an ideal solution, but I belive it to