diff --git a/sys/geom/gate/g_gate.c b/sys/geom/gate/g_gate.c index 0d6a193d0b3c..8c9b1a91098e 100644 --- a/sys/geom/gate/g_gate.c +++ b/sys/geom/gate/g_gate.c @@ -616,8 +616,8 @@ g_gate_modify(struct g_gate_softc *sc, struct g_gate_ctl_modify *ggio) G_GATE_DEBUG(1, "Invalid media size."); return (EINVAL); } - /* TODO */ - return (EOPNOTSUPP); + g_resize_provider(pp, ggio->gctl_mediasize); + return (0); } if ((ggio->gctl_modify & GG_MODIFY_INFO) != 0)