]> git.ipfire.org Git - thirdparty/util-linux.git/commit
findmnt: add --tree to allow to enable tree output for --mtab
authorKarel Zak <kzak@redhat.com>
Thu, 8 Dec 2016 13:24:41 +0000 (14:24 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 8 Dec 2016 13:24:41 +0000 (14:24 +0100)
commit3ebe5477db75f372f2926d3d70599bcdeb7b5a17
tree5d1cd4fead8578316d0ac2859ce13040c9fd39cf
parentde22cb2b12709126ddea855989391f4bfe2f6a20
findmnt: add --tree to allow to enable tree output for --mtab

The --mtab output is merge from kernel and utab on all modern systems
(without classic /etc/mtab). It means we have all necessary information
to generate tree output.

For the backward compatibility --mtab is the list by default, the new
option --tree allows to override the default and enable tree always
when the table contains child-parent relations.

Signed-off-by: Karel Zak <kzak@redhat.com>
bash-completion/findmnt
misc-utils/findmnt.8
misc-utils/findmnt.c