From patchwork Mon Jul 31 04:28:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eryu Guan X-Patchwork-Id: 9870837 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 180FD603B4 for ; Mon, 31 Jul 2017 04:28:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0A19928505 for ; Mon, 31 Jul 2017 04:28:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F327328515; Mon, 31 Jul 2017 04:28:46 +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 AE91528521 for ; Mon, 31 Jul 2017 04:28:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750773AbdGaE2p (ORCPT ); Mon, 31 Jul 2017 00:28:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51814 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750709AbdGaE2p (ORCPT ); Mon, 31 Jul 2017 00:28:45 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1B18910A308; Mon, 31 Jul 2017 04:28:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 1B18910A308 Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=eguan@redhat.com Received: from localhost (dhcp-12-173.nay.redhat.com [10.66.12.173]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8D2BB6292E; Mon, 31 Jul 2017 04:28:44 +0000 (UTC) From: Eryu Guan To: fstests@vger.kernel.org Cc: linux-xfs@vger.kernel.org, Eryu Guan Subject: [PATCH 1/2] generic/224: filter out expected XFS warnings for mixed direct/buffer I/O Date: Mon, 31 Jul 2017 12:28:24 +0800 Message-Id: <20170731042825.6250-1-eguan@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Mon, 31 Jul 2017 04:28:45 +0000 (UTC) Sender: linux-xfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP generic/224 is doing concurrent direct and buffered I/O to the same set of files, and this triggers some expected warnings on XFS. So filter out these warnings just like what we did in generic/095 and generic/247. Signed-off-by: Eryu Guan Reviewed-by: Brian Foster --- tests/generic/224 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/generic/224 b/tests/generic/224 index 2c30a75258f3..29b1c05d06df 100755 --- a/tests/generic/224 +++ b/tests/generic/224 @@ -82,5 +82,14 @@ for i in `seq 0 1 $FILES`; do done wait echo "*** Silence is golden ***" -status=0 + +# unmount and check dmesg, filtering out expected XFS warnings about mixed +# direct and buffered I/O +_scratch_unmount +if [ "$FSTYP" == "xfs" ]; then + _check_dmesg _filter_xfs_dmesg +else + _check_dmesg +fi +status=$? exit