1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-01 12:19:28 +00:00

geom_gate: enable resize

Reviewed By:	pjd
Approved By:	pjd
Differential Revision:	https://reviews.freebsd.org/D11531
This commit is contained in:
Mikolaj Golub 2018-07-13 07:08:06 +00:00
parent 7f2b7ec93c
commit 874774c5d4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=336237

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)