]> git.ipfire.org Git - thirdparty/systemd.git/commit
repart: adjust "partno" column
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 24 Oct 2025 08:34:17 +0000 (10:34 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 17 Nov 2025 13:36:27 +0000 (22:36 +0900)
commitcfb6c543245be0a1908c270941b7881ac7395d1b
treed7003a76d6814de1b39c3bf86d55d934e4088337
parent1006b7e5ba922ce46fdc7ef9ac1865fea8dd0f8d
repart: adjust "partno" column

In a typical output from systemd-repart, the output is very wide any any wasted
space is bad because it pushes the interesting information even further to the
right. We usually need at most one or two digits to express the partition
numbers, so let's shorten the title of the column to effectively remove two
columns in the output.

In JSON output, the old field name is retained. This follows the pattern
already used for field "drop-in_files".

Also right-align the columns with numbers always to the right. I doesn't make
sense to align the columns which are only used for JSON output, so stop setting
alignment for those.
src/repart/repart.c