All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] common/rc: Use -v option with findmnt
@ 2017-03-13 18:07 Goldwyn Rodrigues
  2017-03-14  5:07 ` Eryu Guan
  0 siblings, 1 reply; 4+ messages in thread
From: Goldwyn Rodrigues @ 2017-03-13 18:07 UTC (permalink / raw)
  To: fstests; +Cc: eguan, Goldwyn Rodrigues

From: Goldwyn Rodrigues <rgoldwyn@suse.com>

Since btrfs puts in the subvol name in the device, we should
use -v option to not print the bind mounts or btrfs volumes.

Fixes: 5e6892d ("common/rc: use findmnt to check mounted device")
Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
---
 common/rc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/rc b/common/rc
index d53f679..d7a5321 100644
--- a/common/rc
+++ b/common/rc
@@ -1463,7 +1463,7 @@ _check_mounted_on()
 	local type=$5
 
 	# find $dev as the source, and print result in "$dev $mnt" format
-	local mount_rec=`findmnt -rnc -S $dev -o SOURCE,TARGET`
+	local mount_rec=`findmnt -rncv -S $dev -o SOURCE,TARGET`
 	[ -n "$mount_rec" ] || return 1 # 1 = not mounted
 
 	# if it's mounted, make sure its on $mnt
-- 
2.10.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-03-15  8:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-13 18:07 [PATCH] common/rc: Use -v option with findmnt Goldwyn Rodrigues
2017-03-14  5:07 ` Eryu Guan
2017-03-14 14:07   ` Goldwyn Rodrigues
2017-03-15  8:44     ` Eryu Guan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.