From patchwork Wed Jun 26 23:51:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Yang Xu X-Patchwork-Id: 11027627 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 D6C781510 for ; Tue, 2 Jul 2019 10:40:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C06362864F for ; Tue, 2 Jul 2019 10:40:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B3A9228866; Tue, 2 Jul 2019 10:40:56 +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=-4.5 required=2.0 tests=BAYES_00,DATE_IN_PAST_96_XX, 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 3F4B12864F for ; Tue, 2 Jul 2019 10:40:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725780AbfGBKkz (ORCPT ); Tue, 2 Jul 2019 06:40:55 -0400 Received: from mail.cn.fujitsu.com ([183.91.158.132]:2787 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725767AbfGBKkz (ORCPT ); Tue, 2 Jul 2019 06:40:55 -0400 X-IronPort-AV: E=Sophos;i="5.63,442,1557158400"; d="scan'208";a="70513872" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 02 Jul 2019 18:40:53 +0800 Received: from G08CNEXCHPEKD02.g08.fujitsu.local (unknown [10.167.33.83]) by cn.fujitsu.com (Postfix) with ESMTP id 1DCEC4CDE647 for ; Tue, 2 Jul 2019 18:40:53 +0800 (CST) Received: from localhost.localdomain (10.167.215.46) by G08CNEXCHPEKD02.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 2 Jul 2019 18:40:49 +0800 From: Yang Xu To: CC: Yang Xu Subject: [PATCH] generic/042: add sleep before shutdown Date: Thu, 27 Jun 2019 07:51:45 +0800 Message-ID: <1561593105-24164-1-git-send-email-xuyang2018.jy@cn.fujitsu.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 X-Originating-IP: [10.167.215.46] X-yoursite-MailScanner-ID: 1DCEC4CDE647.ACF59 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: xuyang2018.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 On some server machines, the memory was so big that we don't have enough time to submit file. After umoumt, hexdump will report no such file or directory on ext4. memory:128G swap:8G fail as below: ------------------------------------------- falloc -k wrote 65536/65536 bytes at offset 0 -XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +64 KiB, 16 ops; 0.0002 sec (282.805 MiB/sec and 72398.1900 ops/sec) +hexdump: /mnt/xfstests/scratch/042.mnt/file: No such file or directory +hexdump: all input file arguments failed ------------------------------------------- I think we should reserve a short time, so umount will not lose file. Signed-off-by: Yang Xu --- tests/generic/042 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/generic/042 b/tests/generic/042 index 6c62eb63..e1453114 100755 --- a/tests/generic/042 +++ b/tests/generic/042 @@ -56,6 +56,10 @@ _crashtest() # write, run the test command and shutdown the fs $XFS_IO_PROG -f -c "pwrite -S 1 0 64k" -c "$cmd 60k 4k" $file | \ _filter_xfs_io + + # keep file not lose when umount even on server machine + sleep 10 + ./src/godown -f $mnt $UMOUNT_PROG $mnt