From patchwork Mon Mar 13 18:07:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Goldwyn Rodrigues X-Patchwork-Id: 9621711 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CEB04604CC for ; Mon, 13 Mar 2017 18:07:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C59CA284D3 for ; Mon, 13 Mar 2017 18:07:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BA0E0284F4; Mon, 13 Mar 2017 18:07:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4E768284D3 for ; Mon, 13 Mar 2017 18:07:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752819AbdCMSHd (ORCPT ); Mon, 13 Mar 2017 14:07:33 -0400 Received: from mx2.suse.de ([195.135.220.15]:34712 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752289AbdCMSHd (ORCPT ); Mon, 13 Mar 2017 14:07:33 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 15342AAB4; Mon, 13 Mar 2017 18:07:31 +0000 (UTC) From: Goldwyn Rodrigues To: fstests@vger.kernel.org Cc: eguan@redhat.com, Goldwyn Rodrigues Subject: [PATCH] common/rc: Use -v option with findmnt Date: Mon, 13 Mar 2017 13:07:26 -0500 Message-Id: <20170313180726.1967-1-rgoldwyn@suse.de> X-Mailer: git-send-email 2.10.2 Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Goldwyn Rodrigues 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 --- 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