From owner-svn-src-head@freebsd.org Fri Jul 13 07:08:07 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A6362102C1E2; Fri, 13 Jul 2018 07:08:07 +0000 (UTC) (envelope-from trociny@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 57E4578377; Fri, 13 Jul 2018 07:08:07 +0000 (UTC) (envelope-from trociny@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 34D825070; Fri, 13 Jul 2018 07:08:07 +0000 (UTC) (envelope-from trociny@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w6D787re091213; Fri, 13 Jul 2018 07:08:07 GMT (envelope-from trociny@FreeBSD.org) Received: (from trociny@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w6D787JY091212; Fri, 13 Jul 2018 07:08:07 GMT (envelope-from trociny@FreeBSD.org) Message-Id: <201807130708.w6D787JY091212@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: trociny set sender to trociny@FreeBSD.org using -f From: Mikolaj Golub Date: Fri, 13 Jul 2018 07:08:07 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r336237 - head/sys/geom/gate X-SVN-Group: head X-SVN-Commit-Author: trociny X-SVN-Commit-Paths: head/sys/geom/gate X-SVN-Commit-Revision: 336237 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jul 2018 07:08:07 -0000 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)