geom_gate: enable resize

Reviewed By:	pjd
Approved By:	pjd
Differential Revision:	https://reviews.freebsd.org/D11531
This commit is contained in:
trociny 2018-07-13 07:08:06 +00:00
parent 9131ba637f
commit 414774b793

View File

@ -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)