diff options
author | Andreas Henriksson | 2015-11-12 12:36:03 +0100 |
---|---|---|
committer | Karel Zak | 2015-11-13 09:52:14 +0100 |
commit | 42f536ee84fe1f97b9d390b508a23cafb521ed80 (patch) | |
tree | 2cec3c877eaaba0f913a6767044a733e1f60c7a2 /bash-completion/fstrim | |
parent | lsipc: tweak a few wordings on the manpage (diff) | |
download | kernel-qcow2-util-linux-42f536ee84fe1f97b9d390b508a23cafb521ed80.tar.gz kernel-qcow2-util-linux-42f536ee84fe1f97b9d390b508a23cafb521ed80.tar.xz kernel-qcow2-util-linux-42f536ee84fe1f97b9d390b508a23cafb521ed80.zip |
bash-completion: fstrim: use mountpoint, not device
fstrim takes mountpoint as argument but the bash completion
was completing it to a device node.
Addresses: http://bugs.debian.org/804833
Reported-by: Ritesh Raj Sarraf <rrs@debian.org>
Signed-off-by: Andreas Henriksson <andreas@fatal.se>
Diffstat (limited to 'bash-completion/fstrim')
-rw-r--r-- | bash-completion/fstrim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash-completion/fstrim b/bash-completion/fstrim index 7d3cde9df..726ddd905 100644 --- a/bash-completion/fstrim +++ b/bash-completion/fstrim @@ -27,7 +27,7 @@ _fstrim_module() ;; esac local MPOINTS - MPOINTS=$(findmnt -rno SOURCE | grep ^/dev) + MPOINTS=$(findmnt -rno SOURCE,TARGET | awk '/^\/dev/{print $2}') COMPREPLY=( $(compgen -W "$MPOINTS" -- $cur) ) return 0 } |