diff options
author | Karel Zak | 2019-02-20 12:49:24 +0100 |
---|---|---|
committer | Karel Zak | 2019-02-20 12:49:24 +0100 |
commit | b9c088f2f3a30adaa658b1e1ad0cf30b618a1559 (patch) | |
tree | c6041e9a1737a4695a27f524c8e3bfdafd1f5a9e /misc-utils/lsblk.h | |
parent | libsmartcols: print tree also for empty cells (diff) | |
download | kernel-qcow2-util-linux-b9c088f2f3a30adaa658b1e1ad0cf30b618a1559.tar.gz kernel-qcow2-util-linux-b9c088f2f3a30adaa658b1e1ad0cf30b618a1559.tar.xz kernel-qcow2-util-linux-b9c088f2f3a30adaa658b1e1ad0cf30b618a1559.zip |
lsblk: allow to specify tree column
* document --tree (was missing in the man page)
* add optional argument to --tree to specify tree
For example:
$ lsblk -o KNAME,SIZE,MOUNTPOINT --tree=KNAME /dev/dm-0
KNAME SIZE MOUNTPOINT
dm-0 232.9G
└─dm-1 232.9G
└─dm-2 232.9G
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/lsblk.h')
-rw-r--r-- | misc-utils/lsblk.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/misc-utils/lsblk.h b/misc-utils/lsblk.h index e15c5b42a..da2edc09b 100644 --- a/misc-utils/lsblk.h +++ b/misc-utils/lsblk.h @@ -35,7 +35,9 @@ struct lsblk { struct libscols_table *table; /* output table */ struct libscols_column *sort_col;/* sort output by this column */ - int sort_id; + + int sort_id; /* id of the sort column */ + int tree_id; /* od of column used for tree */ int dedup_id; |