From patchwork Thu Jan 25 07:39:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zorro Lang X-Patchwork-Id: 10183729 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 BA30660233 for ; Thu, 25 Jan 2018 07:39:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A5274283C6 for ; Thu, 25 Jan 2018 07:39:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 97BC828797; Thu, 25 Jan 2018 07:39:23 +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 35F0C283C6 for ; Thu, 25 Jan 2018 07:39:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751138AbeAYHjW (ORCPT ); Thu, 25 Jan 2018 02:39:22 -0500 Received: from mx1.redhat.com ([209.132.183.28]:42016 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751081AbeAYHjW (ORCPT ); Thu, 25 Jan 2018 02:39:22 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 672F972FE9 for ; Thu, 25 Jan 2018 07:39:22 +0000 (UTC) Received: from dhcp-12-127.nay.redhat.com (unknown [10.66.12.127]) by smtp.corp.redhat.com (Postfix) with ESMTP id A497B5D728 for ; Thu, 25 Jan 2018 07:39:21 +0000 (UTC) From: Zorro Lang To: fstests@vger.kernel.org Subject: [PATCH] xfs/439: mkfs again to avoid corruption failure Date: Thu, 25 Jan 2018 15:39:18 +0800 Message-Id: <20180125073918.22371-1-zlang@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Thu, 25 Jan 2018 07:39:22 +0000 (UTC) Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP xfs/439 always fails on ppc64 as below: # ./check xfs/439 ... ... xfs/439 2s ... 1s _check_xfs_filesystem: filesystem on /dev/sda5 is inconsistent (r) (see /var/lib/xfstests/results//xfs/439.full for details) Ran: xfs/439 Failures: xfs/439 Failed 1 of 1 tests # xfs_repair -n $SCRATCH_DEV ... ... Phase 6 - check inode connectivity... - traversing filesystem ... - traversal finished ... - moving disconnected inodes to lost+found ... Phase 7 - verify link counts... Maximum metadata LSN (1:2) is ahead of log (1:2). Would format log to cycle 4. No modify flag set, skipping filesystem flush and exiting. It can't be fixed by log replay (scratch_mount), so mkfs again to make sure the case won't be failed at the end. Signed-off-by: Zorro Lang --- tests/xfs/439 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/xfs/439 b/tests/xfs/439 index 7be700cd..cb13a212 100755 --- a/tests/xfs/439 +++ b/tests/xfs/439 @@ -78,6 +78,9 @@ fi # or CONFIG_XFS_DEBUG (when bug_on_assert is disabled) build, so filter them. _check_dmesg _filter_assert_dmesg +# mkfs again to avoid xfs corruption at the end of test +_scratch_mkfs > /dev/null 2>&1 + echo "Silence is golden" # success, all done