From patchwork Thu Jan 30 22:01:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josef Bacik X-Patchwork-Id: 3559631 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E211F9F39E for ; Thu, 30 Jan 2014 22:01:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1DEFD2015D for ; Thu, 30 Jan 2014 22:01:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 47CB920173 for ; Thu, 30 Jan 2014 22:01:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753359AbaA3WBd (ORCPT ); Thu, 30 Jan 2014 17:01:33 -0500 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:1937 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753294AbaA3WBb (ORCPT ); Thu, 30 Jan 2014 17:01:31 -0500 Received: from pps.filterd (m0004003 [127.0.0.1]) by mx0b-00082601.pphosted.com (8.14.5/8.14.5) with SMTP id s0ULxj5Y015154; Thu, 30 Jan 2014 14:01:26 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fb.com; h=from : to : subject : date : message-id : mime-version : content-type; s=facebook; bh=9S9EZ324wHzArbw0xSzDXYq6Vwbch6LGTDlS7H6OcmA=; b=JNLJvB7jGZ411XvrY8u33I1liMDdXXjBcvmZngwvhJEFj0YCm4KJoybATW+G41pHfAES 016MsH46/hkISR9rlJL7pKBPVT4X4AoKSUOjZRNeLRBZT+TeGVNLU7nmSQ0BepBcw+ml CCRMHWxdrEpy+DPt0/K81okfNXJzrP+gGXg= Received: from mail.thefacebook.com (prn1-cmdf-dc01-fw1-nat.corp.tfbnw.net [173.252.71.129] (may be forged)) by mx0b-00082601.pphosted.com with ESMTP id 1hqv6fgqmh-1 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=OK); Thu, 30 Jan 2014 14:01:26 -0800 Received: from localhost (192.168.57.29) by mail.thefacebook.com (192.168.16.22) with Microsoft SMTP Server (TLS) id 14.3.174.1; Thu, 30 Jan 2014 14:01:25 -0800 From: Josef Bacik To: , Subject: [PATCH] xfstests: generic/299 can have truncate fail Date: Thu, 30 Jan 2014 17:01:23 -0500 Message-ID: <1391119283-11116-1-git-send-email-jbacik@fb.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 X-Originating-IP: [192.168.57.29] X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.11.87, 1.0.14, 0.0.0000 definitions=2014-01-30_04:2014-01-30, 2014-01-30, 1970-01-01 signatures=0 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,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 So this test does lots of fallocate/truncate noise while doing aio overwrites to try and exercise a deadlock found in ext4. Because it runs so hard with ENOSPC it can sometimes cause truncate to fail on btrfs. This is ok and doesn't affect the validity of the test, we just need to catch the output so it doesn't cause the test to fail. Thanks, Signed-off-by: Josef Bacik --- tests/generic/299 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/generic/299 b/tests/generic/299 index 14cce96..bf02c94 100755 --- a/tests/generic/299 +++ b/tests/generic/299 @@ -130,7 +130,7 @@ _workout() done for ((k=1; k <= NUM_JOBS; k++)) do - truncate -s 0 $SCRATCH_MNT/direct_aio.$k.0 + truncate -s 0 $SCRATCH_MNT/direct_aio.$k.0 >> $seqres.full 2>&1 done # Following like will check that pid is still run. # Once fio exit we can stop fallocate/truncate loop