summaryrefslogtreecommitdiffstats
path: root/bash-completion/findmnt
diff options
context:
space:
mode:
authorKarel Zak2016-12-08 14:24:41 +0100
committerKarel Zak2016-12-08 14:24:41 +0100
commit3ebe5477db75f372f2926d3d70599bcdeb7b5a17 (patch)
tree5d1cd4fead8578316d0ac2859ce13040c9fd39cf /bash-completion/findmnt
parentfindmnt: add note about mount options (diff)
downloadkernel-qcow2-util-linux-3ebe5477db75f372f2926d3d70599bcdeb7b5a17.tar.gz
kernel-qcow2-util-linux-3ebe5477db75f372f2926d3d70599bcdeb7b5a17.tar.xz
kernel-qcow2-util-linux-3ebe5477db75f372f2926d3d70599bcdeb7b5a17.zip
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>
Diffstat (limited to 'bash-completion/findmnt')
-rw-r--r--bash-completion/findmnt1
1 files changed, 1 insertions, 0 deletions
diff --git a/bash-completion/findmnt b/bash-completion/findmnt
index 946c22a98..5583fbf6c 100644
--- a/bash-completion/findmnt
+++ b/bash-completion/findmnt
@@ -127,6 +127,7 @@ _findmnt_module()
--target
--mountpoint
--help
+ --tree
--version"
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
return 0