diff options
author | ae <ae@FreeBSD.org> | 2014-05-04 20:00:08 +0000 |
---|---|---|
committer | ae <ae@FreeBSD.org> | 2014-05-04 20:00:08 +0000 |
commit | 9b1896e64f52fa639d8bea0b9ba42b8064af94a4 (patch) | |
tree | 784c53c801dcc8aa69714f5047a58e18da22e8af | |
parent | 116f0fb807c6f718c68cc07161da201285923507 (diff) | |
download | FreeBSD-src-9b1896e64f52fa639d8bea0b9ba42b8064af94a4.zip FreeBSD-src-9b1896e64f52fa639d8bea0b9ba42b8064af94a4.tar.gz |
Add an advice what to do when partition was automatically resized.
X-MFC after: r256690
-rw-r--r-- | sys/geom/part/g_part.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/geom/part/g_part.c b/sys/geom/part/g_part.c index a92b848..d5862a0 100644 --- a/sys/geom/part/g_part.c +++ b/sys/geom/part/g_part.c @@ -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; |