From patchwork Wed Jan 28 05:33:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiaoguang Wang X-Patchwork-Id: 5727401 Return-Path: X-Original-To: patchwork-fstests@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 03555BF440 for ; Wed, 28 Jan 2015 05:39:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2E345202E9 for ; Wed, 28 Jan 2015 05:39:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4B398202BE for ; Wed, 28 Jan 2015 05:39:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760631AbbA1Fjf (ORCPT ); Wed, 28 Jan 2015 00:39:35 -0500 Received: from cn.fujitsu.com ([59.151.112.132]:10774 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1760069AbbA1Fjf (ORCPT ); Wed, 28 Jan 2015 00:39:35 -0500 X-IronPort-AV: E=Sophos;i="5.04,848,1406563200"; d="scan'208";a="56740973" Received: from unknown (HELO edo.cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 28 Jan 2015 13:35:57 +0800 Received: from G08CNEXCHPEKD03.g08.fujitsu.local (localhost.localdomain [127.0.0.1]) by edo.cn.fujitsu.com (8.14.3/8.13.1) with ESMTP id t0S5ckgD003729; Wed, 28 Jan 2015 13:38:46 +0800 Received: from localhost.localdomain (10.167.226.24) by G08CNEXCHPEKD03.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.181.6; Wed, 28 Jan 2015 13:39:29 +0800 From: Xiaoguang Wang To: CC: , , , Xiaoguang Wang Subject: [PATCH] ext4/304: ignore EINVAL and ENODATA error Date: Wed, 28 Jan 2015 13:33:46 +0800 Message-ID: <1422423226-12355-1-git-send-email-wangxg.fnst@cn.fujitsu.com> X-Mailer: git-send-email 1.8.2.1 MIME-Version: 1.0 X-Originating-IP: [10.167.226.24] Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP ext4/304 is also ext4 defragmentation stress test, which creates several threads to perform defragmentation using 'inplace' mode, but there is a possible race that the donor file has been truncated by thread_A, while thread_B starts to call ioctl(EXT4_IOC_MOVE_EXT), then we may get a EINVAL or ENODATA error. Please see: http://www.spinics.net/lists/linux-ext4/msg46900.html for detailed information. Signed-off-by: Xiaoguang Wang --- tests/ext4/304 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/ext4/304 b/tests/ext4/304 index b9b4356..01c51a4 100755 --- a/tests/ext4/304 +++ b/tests/ext4/304 @@ -61,6 +61,8 @@ filesize=${FILE_SIZE} size=999G buffered=0 fadvise_hint=0 +continue_on_error=write +ignore_error=,EINVAL:61 ################################# # Test4