35c35
< * $FreeBSD: head/sys/geom/geom_bsd.c 105542 2002-10-20 19:18:07Z phk $
---
> * $FreeBSD: head/sys/geom/geom_bsd.c 105551 2002-10-20 20:28:24Z phk $
322,327c322,323
< error = g_getattr("GEOM::sectorsize", cp, &secsize);
< if (error)
< return (error);
< error = g_getattr("GEOM::mediasize", cp, &mediasize);
< if (error)
< return (error);
---
> secsize = cp->provider->sectorsize;
> mediasize = cp->provider->mediasize;
516,520c512
< error = g_getattr("GEOM::sectorsize", cp, &secsize);
< if (error || secsize < 512) {
< g_io_deliver(bp, error);
< return;
< }
---
> secsize = cp->provider->sectorsize;
706,707c698,699
< error = g_getattr("GEOM::sectorsize", cp, &secsize);
< if (error || secsize < 512)
---
> secsize = cp->provider->sectorsize;
> if (secsize < 512)
< * $FreeBSD: head/sys/geom/geom_bsd.c 105542 2002-10-20 19:18:07Z phk $
---
> * $FreeBSD: head/sys/geom/geom_bsd.c 105551 2002-10-20 20:28:24Z phk $
322,327c322,323
< error = g_getattr("GEOM::sectorsize", cp, &secsize);
< if (error)
< return (error);
< error = g_getattr("GEOM::mediasize", cp, &mediasize);
< if (error)
< return (error);
---
> secsize = cp->provider->sectorsize;
> mediasize = cp->provider->mediasize;
516,520c512
< error = g_getattr("GEOM::sectorsize", cp, &secsize);
< if (error || secsize < 512) {
< g_io_deliver(bp, error);
< return;
< }
---
> secsize = cp->provider->sectorsize;
706,707c698,699
< error = g_getattr("GEOM::sectorsize", cp, &secsize);
< if (error || secsize < 512)
---
> secsize = cp->provider->sectorsize;
> if (secsize < 512)