From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com ([192.55.52.115]:32734 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750975AbdDRQdF (ORCPT ); Tue, 18 Apr 2017 12:33:05 -0400 Date: Tue, 18 Apr 2017 10:32:44 -0600 From: Ross Zwisler Subject: Re: [PATCH v4 2/4] generic: test mmap io fom DAX to non-DAX Message-ID: <20170418163244.GB25618@linux.intel.com> References: <1492008380-29164-1-git-send-email-xzhou@redhat.com> <1492413255-11146-1-git-send-email-xzhou@redhat.com> <1492413255-11146-3-git-send-email-xzhou@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1492413255-11146-3-git-send-email-xzhou@redhat.com> Sender: fstests-owner@vger.kernel.org To: Xiong Zhou Cc: fstests@vger.kernel.org, ross.zwisler@linux.intel.com, dan.j.williams@intel.com, jmoyer@redhat.com, eguan@redhat.com List-ID: On Mon, Apr 17, 2017 at 03:14:13PM +0800, Xiong Zhou wrote: > Mount TEST_DEV as non-DAX, SCRATCH_DEV as DAX, then > do mmap DIO from DAX to non-DAX. > > This test is split from generic/413. Since DIO from DAX > to non-DAX is only supported/doable when device underneath > has memory(struct page) backend. > > By ndctl looking at SCRATCH_DEV, skip this test if it is > not in "memory mode". > > Adding helper to check pmem device status, which requires new > PROGs ndctl to tweaking pmem devices and jq to parse ndctl's > JSON format outputs. > > Signed-off-by: Xiong Zhou > --- > common/rc | 45 ++++++++++++++++++++ > tests/generic/423 | 113 ++++++++++++++++++++++++++++++++++++++++++++++++++ generic/423 looks good to me, just need to change the memory mode detection.