From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.cn.fujitsu.com ([183.91.158.132]:42775 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750898AbeEUHp7 (ORCPT ); Mon, 21 May 2018 03:45:59 -0400 Message-ID: <5B027930.4050203@cn.fujitsu.com> Date: Mon, 21 May 2018 15:45:52 +0800 From: Xiao Yang MIME-Version: 1.0 Subject: Re: [PATCH] xfs/132: umount scratch device after finishing test References: <1526704344-19615-1-git-send-email-yangx.jy@cn.fujitsu.com> <20180521023631.GN10363@dastard> In-Reply-To: <20180521023631.GN10363@dastard> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Sender: fstests-owner@vger.kernel.org To: Dave Chinner Cc: fstests@vger.kernel.org List-ID: On 2018/05/21 10:36, Dave Chinner wrote: > On Sat, May 19, 2018 at 12:32:24PM +0800, Xiao Yang wrote: >> xfs/132 and xfs/133 running together got the following error: >> ------------------------------------------------------------ >> ... >> xfs/132 1s ... 1s >> xfs/133 1s ... [failed, exit status 1] - output mismatch (see /var/lib/xfstests/results//xfs/133.out.bad) >> ... >> QA output created by 133 >> -Format and mount >> -Corrupt filesystem >> -Remount, try to append >> -Write did not succeed (ok). >> +SCRATCH_DEV=/dev/sda11 is mounted but not on SCRATCH_MNT=common/config: - aborting >> +Already mounted result: >> +/dev/sda11 /mnt/xfstests/scratch >> ... >> ------------------------------------------------------------ >> >> xfs/132 led to XFS shutdown due to the corrupted inode, but it didn't rectify XFS >> by umount scratch device. > AFAIK, we don't have to unmount the scratch device when a test > finishes - the test harness is supposed to do that and make sure > that it is in the correct state for the next test to run. > > It seems that somewhere along the line this got broken. - I'm > guessing the fact that this test also says "don't check the scratch > device" the test harness is failing to unmount it because it's not > running _check_scratch_device. I'm guessing that it should at least > run _scratch_unmount.... Hi Dave, Could we just make the test harness call _scratch_unmount after running every test, as below: -------------------------------------------------------------- diff --git a/check b/check index 96198ac..63ece67 100755 --- a/check +++ b/check @@ -815,6 +815,7 @@ for section in $HOST_OPTIONS_SECTIONS; do _make_testcase_report "$tc_status" fi seq="after_$seqnum" + _scratch_unmount 2> /dev/null done sect_stop=`_wallclock` interrupt=false @@ -823,7 +824,6 @@ for section in $HOST_OPTIONS_SECTIONS; do echo _test_unmount 2> /dev/null - _scratch_unmount 2> /dev/null done interrupt=false --------------------------------------------------------------- Thanks, Xiao Yang > Cheers, > > Dave.