From patchwork Mon Sep 25 08:40:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Murphy Zhou X-Patchwork-Id: 9969457 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 404D3602D8 for ; Mon, 25 Sep 2017 08:41:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3673B28C4F for ; Mon, 25 Sep 2017 08:41:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2B6E428C38; Mon, 25 Sep 2017 08:41:18 +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 DA6C428C4F for ; Mon, 25 Sep 2017 08:41:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932970AbdIYIlR (ORCPT ); Mon, 25 Sep 2017 04:41:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49614 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933296AbdIYIlQ (ORCPT ); Mon, 25 Sep 2017 04:41:16 -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 A6804BDEA; Mon, 25 Sep 2017 08:41:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com A6804BDEA Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=xzhou@redhat.com Received: from localhost (dhcp-12-130.nay.redhat.com [10.66.12.130]) by smtp.corp.redhat.com (Postfix) with ESMTP id 282E4675A0; Mon, 25 Sep 2017 08:41:15 +0000 (UTC) From: Xiong Zhou To: fstests@vger.kernel.org Cc: ross.zwisler@linux.intel.com, dan.j.williams@intel.com, jmoyer@redhat.com, eguan@redhat.com, Xiong Zhou Subject: [PATCH v5 2/3] generic/413: skip dax to nondax dio test if needed Date: Mon, 25 Sep 2017 16:40:46 +0800 Message-Id: <1506328847-1669-3-git-send-email-xzhou@redhat.com> In-Reply-To: <1506328847-1669-1-git-send-email-xzhou@redhat.com> References: <1492413255-11146-1-git-send-email-xzhou@redhat.com> <1506328847-1669-1-git-send-email-xzhou@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.29]); Mon, 25 Sep 2017 08:41:16 +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 Since not all devices support dax has struct page backend, which will not support this test. Signed-off-by: Xiong Zhou --- tests/generic/413 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/generic/413 b/tests/generic/413 index a1cc514..b86c10f 100755 --- a/tests/generic/413 +++ b/tests/generic/413 @@ -88,6 +88,14 @@ t_nondax_to_dax() t_dax_to_nondax() { prep_files + # dax to nondax dio needs struct page backend, which is + # not always avaiable among various devices. Skip this + # subtest if not compatible. + if ! src/t_mmap_dio $SCRATCH_MNT/tf_s \ + $TEST_DIR/tf_d $1 "test" > /dev/null 2>&1 ; then + return + fi + src/t_mmap_dio $SCRATCH_MNT/tf_s \ $TEST_DIR/tf_d $1 "dio dax to nondax"