summaryrefslogtreecommitdiffstats
path: root/misc-utils/lsblk.c
diff options
context:
space:
mode:
authorKarel Zak2012-03-20 11:04:48 +0100
committerKarel Zak2012-03-20 11:04:48 +0100
commit451d76463c6afd732ae488ec23d68d7ec22d0bee (patch)
treec44e88e9054da6675bca29ccc5e2e7830148c378 /misc-utils/lsblk.c
parentfindmnt: improve --df output (diff)
downloadkernel-qcow2-util-linux-451d76463c6afd732ae488ec23d68d7ec22d0bee.tar.gz
kernel-qcow2-util-linux-451d76463c6afd732ae488ec23d68d7ec22d0bee.tar.xz
kernel-qcow2-util-linux-451d76463c6afd732ae488ec23d68d7ec22d0bee.zip
misc: clenaup SIZE columns in lsblk and findmnt
Note that lib/tt.c will never truncate columns without TT_FL_TRUNC or relative column width. So it's fine to set small width for columns with SIZEs, the defined width is minimal width. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/lsblk.c')
-rw-r--r--misc-utils/lsblk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc-utils/lsblk.c b/misc-utils/lsblk.c
index 9c0be2749..4ff0102db 100644
--- a/misc-utils/lsblk.c
+++ b/misc-utils/lsblk.c
@@ -112,7 +112,7 @@ static struct colinfo infos[] = {
[COL_RM] = { "RM", 1, TT_FL_RIGHT, N_("removable device") },
[COL_ROTA] = { "ROTA", 1, TT_FL_RIGHT, N_("rotational device") },
[COL_MODEL] = { "MODEL", 0.1, TT_FL_TRUNC, N_("device identifier") },
- [COL_SIZE] = { "SIZE", 6, TT_FL_RIGHT, N_("size of the device") },
+ [COL_SIZE] = { "SIZE", 5, TT_FL_RIGHT, N_("size of the device") },
[COL_STATE] = { "STATE", 7, TT_FL_TRUNC, N_("state of the device") },
[COL_OWNER] = { "OWNER", 0.1, TT_FL_TRUNC, N_("user name"), },
[COL_GROUP] = { "GROUP", 0.1, TT_FL_TRUNC, N_("group name") },