From patchwork Thu Nov 29 07:15:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiao Yang X-Patchwork-Id: 10704143 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C3EA91057 for ; Thu, 29 Nov 2018 07:54:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BBB872EC58 for ; Thu, 29 Nov 2018 07:54:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AE7242EC5C; Thu, 29 Nov 2018 07:54:36 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, 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 26E792EC58 for ; Thu, 29 Nov 2018 07:54:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726841AbeK2S7E (ORCPT ); Thu, 29 Nov 2018 13:59:04 -0500 Received: from mail.cn.fujitsu.com ([183.91.158.132]:53914 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726766AbeK2S7E (ORCPT ); Thu, 29 Nov 2018 13:59:04 -0500 X-IronPort-AV: E=Sophos;i="5.56,293,1539619200"; d="scan'208";a="48820763" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 29 Nov 2018 15:54:33 +0800 Received: from G08CNEXCHPEKD02.g08.fujitsu.local (unknown [10.167.33.83]) by cn.fujitsu.com (Postfix) with ESMTP id 405864B7349C for ; Thu, 29 Nov 2018 15:54:32 +0800 (CST) Received: from RHEL7U5GA_Intel64.g08.fujitsu.local (10.167.220.156) by G08CNEXCHPEKD02.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 29 Nov 2018 15:54:30 +0800 From: Xiao Yang To: CC: Xiao Yang Subject: [PATCH] ext4/002: Fix obsolete TEST_DEV/TEST_DIR in _check_ext4_eof_flag() Date: Thu, 29 Nov 2018 15:15:32 +0800 Message-ID: <1543475732-10002-1-git-send-email-yangx.jy@cn.fujitsu.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 X-Originating-IP: [10.167.220.156] X-yoursite-MailScanner-ID: 405864B7349C.A6FEF X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: yangx.jy@cn.fujitsu.com Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Commit 6b06a9bb6fb0 has used SCRATCH_DEV/SCRATCH_MNT rather than TEST_DEV/TEST_DIR for holding the test files, so we need to use SCRATCH_DEV/SCRATCH_MNT in _check_ext4_eof_flag() as well. Fixes: 6b06a9bb6fb0 ("ext4/002: Work with 64k block size") Signed-off-by: Xiao Yang --- tests/ext4/002 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/ext4/002 b/tests/ext4/002 index b911b1a..986834b 100755 --- a/tests/ext4/002 +++ b/tests/ext4/002 @@ -62,11 +62,11 @@ _check_ext4_eof_flag() if [ "${FSTYP}" == "ext4" ]; then bit_set=1 - # Unmount the ${TEST_DEV} - _test_unmount + # Unmount the ${SCRATCH_DEV} + _scratch_unmount # Run debugfs to gather file_parameters - specifically iflags. - file_params=`debugfs ${TEST_DEV} -R "stat ${1}" 2>&1 | grep -e Flags:` + file_params=`debugfs ${SCRATCH_DEV} -R "stat ${1}" 2>&1 | grep -e Flags:` iflags=${file_params#*Flags: } # Ensure that the iflags value was parsed correctly. @@ -92,8 +92,8 @@ _check_ext4_eof_flag() exit ${status} fi - # Mount the ${TEST_DEV} - mount ${TEST_DEV} -t ${FSTYP} ${TEST_DIR} + # Mount the ${SCRATCH_DEV} + _scratch_mount fi }