]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
repart: show partitions we don't grow/create as "unchanged"
authorLennart Poettering <lennart@poettering.net>
Mon, 14 Jun 2021 15:01:48 +0000 (17:01 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 14 Jun 2021 20:39:33 +0000 (05:39 +0900)
The previous string was "unknown", but that's wrong, because we *do*
know what we are going to do with those partitions: we leave them
unmodified, hence say "unchanged" in the output, to be clearer.

src/partition/repart.c

index 2fb4e2ec46cc3de94594520df4b2b9cbfb8f431c..824cfe8cf7586b3d9d698fe10bb6b7bf2783e622 100644 (file)
@@ -2037,7 +2037,7 @@ static int context_dump_partitions(Context *context, const char *node) {
                                 TABLE_UINT64, p->current_padding == UINT64_MAX ? 0 : p->current_padding,
                                 TABLE_UINT64, p->new_padding,
                                 TABLE_STRING, padding_change, TABLE_SET_COLOR, !p->partitions_next && sum_padding > 0 ? ansi_underline() : NULL,
-                                TABLE_STRING, activity ?: "unknown");
+                                TABLE_STRING, activity ?: "unchanged");
                 if (r < 0)
                         return table_log_add_error(r);
         }