]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsblk: allow to specify tree column
authorKarel Zak <kzak@redhat.com>
Wed, 20 Feb 2019 11:49:24 +0000 (12:49 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 20 Feb 2019 11:49:24 +0000 (12:49 +0100)
commitb9c088f2f3a30adaa658b1e1ad0cf30b618a1559
treec6041e9a1737a4695a27f524c8e3bfdafd1f5a9e
parentebb636899096eb7062721dc49334cb023850a520
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>
misc-utils/lsblk.8
misc-utils/lsblk.c
misc-utils/lsblk.h