From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oi0-f46.google.com ([209.85.218.46]:35178 "EHLO mail-oi0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753757AbdDNPdq (ORCPT ); Fri, 14 Apr 2017 11:33:46 -0400 Received: by mail-oi0-f46.google.com with SMTP id f22so95021359oib.2 for ; Fri, 14 Apr 2017 08:33:46 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20170414152233.GA5223@linux.intel.com> References: <20170412062608.y2u5og3xz2oly44b@XZHOUW.usersys.redhat.com> <1492008380-29164-1-git-send-email-xzhou@redhat.com> <1492008380-29164-3-git-send-email-xzhou@redhat.com> <20170413041157.rcctxishunypgtvv@XZHOUW.usersys.redhat.com> <20170414100134.iqqou7chjsctpfwh@XZHOUW.usersys.redhat.com> <20170414152233.GA5223@linux.intel.com> From: Dan Williams Date: Fri, 14 Apr 2017 08:33:44 -0700 Message-ID: Subject: Re: [PATCH v3 2/4] generic: test mmap io fom DAX to non-DAX Content-Type: text/plain; charset=UTF-8 Sender: fstests-owner@vger.kernel.org To: Ross Zwisler Cc: Xiong Zhou , fstests@vger.kernel.org, jmoyer , Eryu Guan List-ID: On Fri, Apr 14, 2017 at 8:22 AM, Ross Zwisler wrote: > On Fri, Apr 14, 2017 at 07:49:48AM -0700, Dan Williams wrote: >> On Fri, Apr 14, 2017 at 3:01 AM, Xiong Zhou wrote: >> > I agree with Ross that we don't even need ndctl and jq, if we run tests >> > on memmap setup. >> >> I don't understand this comment. How is the test determining if it is >> on an memmap defined namespace without querying sysfs? > > If we we assume that a setup is *either* memmap based or NFIT based, we can > choose whether to use jq & ndctl by grepping for "memmap" with a trailing "!" > in /proc/cmdline. > > If you think we need to worry about the case where users have both a valid > NFIT and a memmap kernel command line param making them a PMEM region, this > shortcut won't work. Since the user is picking the pmem device the test will gave the wrong answer if they pick the wrong one. Especially since the kernel is growing new nvdimm bus types, like the powerpc one, this test should check the namespace mode.