From patchwork Mon Sep 18 08:11:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gu Jinxiang X-Patchwork-Id: 9955675 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 A90DA60385 for ; Mon, 18 Sep 2017 08:11:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 971F328B68 for ; Mon, 18 Sep 2017 08:11:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8BE8928B8F; Mon, 18 Sep 2017 08:11:40 +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 2FBC228B8F for ; Mon, 18 Sep 2017 08:11:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752730AbdIRILh (ORCPT ); Mon, 18 Sep 2017 04:11:37 -0400 Received: from mail.cn.fujitsu.com ([183.91.158.132]:50372 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752704AbdIRILf (ORCPT ); Mon, 18 Sep 2017 04:11:35 -0400 X-IronPort-AV: E=Sophos;i="5.42,411,1500912000"; d="scan'208";a="26735165" Received: from localhost (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 18 Sep 2017 16:11:34 +0800 Received: from G08CNEXCHPEKD03.g08.fujitsu.local (unknown [10.167.33.85]) by cn.fujitsu.com (Postfix) with ESMTP id C427F46BA6A8; Mon, 18 Sep 2017 16:11:31 +0800 (CST) Received: from localhost.localdomain (10.167.226.132) by G08CNEXCHPEKD03.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.361.1; Mon, 18 Sep 2017 16:11:34 +0800 From: Gu Jinxiang To: CC: Subject: [PATCH 2/2] xfstests: Add echo logic to show the information of TEST_FS_MOUNT_OPTS Date: Mon, 18 Sep 2017 16:11:10 +0800 Message-ID: <1505722270-24648-2-git-send-email-gujx@cn.fujitsu.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1505722270-24648-1-git-send-email-gujx@cn.fujitsu.com> References: <1505722270-24648-1-git-send-email-gujx@cn.fujitsu.com> MIME-Version: 1.0 X-Originating-IP: [10.167.226.132] X-yoursite-MailScanner-ID: C427F46BA6A8.A5A51 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: gujx@cn.fujitsu.com Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP There is message to show user the scrath mount, but no message to point TEST_FS_MOUNT_OPTS of test mount. Add logic to show test mount. Signed-off-by: Gu Jinxiang --- check | 1 + common/rc | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/check b/check index f8db3cd..676b16c 100755 --- a/check +++ b/check @@ -579,6 +579,7 @@ for section in $HOST_OPTIONS_SECTIONS; do # print out our test configuration echo "FSTYP -- `_full_fstyp_details`" echo "PLATFORM -- `_full_platform_details`" + echo "TEST_FS_MOUNT_OPTS -- `_test_mount_options`" if [ ! -z "$SCRATCH_DEV" ]; then echo "MKFS_OPTIONS -- `_scratch_mkfs_options`" echo "MOUNT_OPTIONS -- `_scratch_mount_options`" diff --git a/common/rc b/common/rc index eb9c469..1e7fee2 100644 --- a/common/rc +++ b/common/rc @@ -312,6 +312,19 @@ _overlay_mount_options() $OVERLAY_MOUNT_OPTIONS } +_test_mount_options() +{ + _test_options mount + + if [ "$FSTYP" == "overlay" ]; then + echo `_overlay_mount_options` + return 0 + fi + + echo $TEST_OPTIONS $TEST_FS_MOUNT_OPTS $SELINUX_MOUNT_OPTIONS $* \ + $TEST_DEV $TEST_DIR +} + _scratch_mount_options() { _scratch_options mount