Add an advice what to do when partition was automatically resized.
X-MFC after: r256690
This commit is contained in:
parent
33dc5c2a8c
commit
4f31a94bd2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user