Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Jun 2015 12:52:41 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r284151 - head/sys/geom/part
Message-ID:  <201506081252.t58Cqf39098437@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Mon Jun  8 12:52:41 2015
New Revision: 284151
URL: https://svnweb.freebsd.org/changeset/base/284151

Log:
  Teach G_PART_GPT class to handle g_resize_provider event.
  
  MFC after:	10 days

Modified:
  head/sys/geom/part/g_part_gpt.c

Modified: head/sys/geom/part/g_part_gpt.c
==============================================================================
--- head/sys/geom/part/g_part_gpt.c	Mon Jun  8 07:06:33 2015	(r284150)
+++ head/sys/geom/part/g_part_gpt.c	Mon Jun  8 12:52:41 2015	(r284151)
@@ -760,7 +760,7 @@ g_part_gpt_resize(struct g_part_table *b
 	struct g_part_gpt_entry *entry;
 
 	if (baseentry == NULL)
-		return (EOPNOTSUPP);
+		return (g_part_gpt_recover(basetable));
 
 	entry = (struct g_part_gpt_entry *)baseentry;
 	baseentry->gpe_end = baseentry->gpe_start + gpp->gpp_size - 1;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506081252.t58Cqf39098437>