diff --git a/sys/geom/mirror/g_mirror_ctl.c b/sys/geom/mirror/g_mirror_ctl.c index 8dc87b69f8ad..798139c23eb2 100644 --- a/sys/geom/mirror/g_mirror_ctl.c +++ b/sys/geom/mirror/g_mirror_ctl.c @@ -367,7 +367,8 @@ g_mirror_ctl_insert(struct gctl_req *req, struct g_class *mp) gctl_error(req, "Unknown provider %s.", name); continue; } - if (sc->sc_provider->mediasize > pp->mediasize) { + if (sc->sc_provider->mediasize > + pp->mediasize - pp->sectorsize) { gctl_error(req, "Provider %s too small.", name); continue; }