Index: geom_io.c =================================================================== RCS file: /private/FreeBSD/src/sys/geom/geom_io.c,v retrieving revision 1.58 diff -u -p -r1.58 geom_io.c --- geom_io.c 27 Aug 2004 14:43:11 -0000 1.58 +++ geom_io.c 14 Sep 2004 06:32:46 -0000 @@ -445,7 +445,7 @@ g_read_data(struct g_consumer *cp, off_t void *ptr; int errorc; - KASSERT(length >= 512 && length <= DFLTPHYS, + KASSERT(length >= cp->provider->sectorsize && length <= MAXPHYS, ("g_read_data(): invalid length %jd", (intmax_t)length)); bp = g_alloc_bio(); @@ -473,7 +473,7 @@ g_write_data(struct g_consumer *cp, off_ struct bio *bp; int error; - KASSERT(length >= 512 && length <= DFLTPHYS, + KASSERT(length >= cp->provider->sectorsize && length <= MAXPHYS, ("g_write_data(): invalid length %jd", (intmax_t)length)); bp = g_alloc_bio();