* [PATCH] bash-completion: fstrim: use mountpoint, not device
@ 2015-11-12 11:36 Andreas Henriksson
2015-11-13 8:52 ` Karel Zak
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Henriksson @ 2015-11-12 11:36 UTC (permalink / raw)
To: util-linux; +Cc: Ritesh Raj Sarraf, Andreas Henriksson
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>
---
bash-completion/fstrim | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bash-completion/fstrim b/bash-completion/fstrim
index 7d3cde9..726ddd9 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
}
--
2.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] bash-completion: fstrim: use mountpoint, not device
2015-11-12 11:36 [PATCH] bash-completion: fstrim: use mountpoint, not device Andreas Henriksson
@ 2015-11-13 8:52 ` Karel Zak
0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2015-11-13 8:52 UTC (permalink / raw)
To: Andreas Henriksson; +Cc: util-linux, Ritesh Raj Sarraf
On Thu, Nov 12, 2015 at 12:36:03PM +0100, Andreas Henriksson wrote:
> bash-completion/fstrim | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-11-13 8:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-12 11:36 [PATCH] bash-completion: fstrim: use mountpoint, not device Andreas Henriksson
2015-11-13 8:52 ` Karel Zak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox