Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 May 2014 20:00:09 +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: r265336 - head/sys/geom/part
Message-ID:  <201405042000.s44K09Pd054674@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Sun May  4 20:00:08 2014
New Revision: 265336
URL: http://svnweb.freebsd.org/changeset/base/265336

Log:
  Add an advice what to do when partition was automatically resized.
  
  X-MFC after:	r256690

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

Modified: head/sys/geom/part/g_part.c
==============================================================================
--- head/sys/geom/part/g_part.c	Sun May  4 18:15:07 2014	(r265335)
+++ head/sys/geom/part/g_part.c	Sun May  4 20:00:08 2014	(r265336)
@@ -2065,8 +2065,10 @@ g_part_resize(struct g_consumer *cp)
 		table->gpt_opened = 1;
 	}
 	if (G_PART_RESIZE(table, NULL, NULL) == 0)
-		printf("GEOM_PART: %s was automatically resized\n",
-		    cp->geom->name);
+		printf("GEOM_PART: %s was automatically resized.\n"
+		    "  Use `gpart commit %s` to save changes or "
+		    "`gpart undo %s` to revert them.\n", cp->geom->name,
+		    cp->geom->name, cp->geom->name);
 	if (g_part_check_integrity(table, cp) != 0) {
 		g_access(cp, -1, -1, -1);
 		table->gpt_opened = 0;



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