svn commit: r336237 - head/sys/geom/gate

Mikolaj Golub trociny at FreeBSD.org
Fri Jul 13 07:08:07 UTC 2018


Author: trociny (ports committer)
Date: Fri Jul 13 07:08:06 2018
New Revision: 336237
URL: https://svnweb.freebsd.org/changeset/base/336237

Log:
  geom_gate: enable resize
  
  Reviewed By:	pjd
  Approved By:	pjd
  Differential Revision:	https://reviews.freebsd.org/D11531

Modified:
  head/sys/geom/gate/g_gate.c

Modified: head/sys/geom/gate/g_gate.c
==============================================================================
--- head/sys/geom/gate/g_gate.c	Fri Jul 13 02:02:16 2018	(r336236)
+++ head/sys/geom/gate/g_gate.c	Fri Jul 13 07:08:06 2018	(r336237)
@@ -616,8 +616,8 @@ g_gate_modify(struct g_gate_softc *sc, struct g_gate_c
 			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)


More information about the svn-src-head mailing list