From: Dave Chinner Subject: Re: [fstests PATCH 2/2] generic/999: test DAX DMA vs truncate/hole-punch Date: Thu, 21 Jun 2018 12:18:42 +1000 Message-ID: <20180621021842.GB13748@dastard> References: <20180620225147.12151-1-ross.zwisler@linux.intel.com> <20180620225147.12151-2-ross.zwisler@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Jan Kara , Eryu Guan , linux-nvdimm-hn68Rpc1hR1g9hUCZPvPmw@public.gmane.org, fstests-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-ext4-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Christoph Hellwig To: Ross Zwisler Return-path: Content-Disposition: inline In-Reply-To: <20180620225147.12151-2-ross.zwisler-VuQAYsv1563Yd54FQh9/CA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-nvdimm-bounces-hn68Rpc1hR1g9hUCZPvPmw@public.gmane.org Sender: "Linux-nvdimm" List-Id: linux-ext4.vger.kernel.org On Wed, Jun 20, 2018 at 04:51:47PM -0600, Ross Zwisler wrote: > diff --git a/src/t_mmap_collision.c b/src/t_mmap_collision.c > new file mode 100644 > index 00000000..f652e913 > --- /dev/null > +++ b/src/t_mmap_collision.c > @@ -0,0 +1,208 @@ > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include No license (SPDX), no copyright, no comments explaining what the code is for, what bug/API it is trying to exercise how it works, command line usage, etc. > +++ b/tests/generic/999 > @@ -0,0 +1,50 @@ > +#! /bin/bash > +# SPDX-License-Identifier: GPL-2.0 > +# Copyright (c) 2018 Intel Corporation. All Rights Reserved. > +# > +# FS QA Test generic/999 > +# > +# This is a regression test for kernel patch: > +# ext4: handle layout changes to pinned DAX mapping > +# created by Ross Zwisler Author information is stored in the git tree, not the code. > +rm -f $seqres.full > + > +# Modify as appropriate. > +_supported_fs generic > +_supported_os Linux > +_require_test > +_require_test_program "t_mmap_collision" > + > +# turn off DAX on our scratch device so we can get normal O_DIRECT behavior > +export MOUNT_OPTIONS="" > +_scratch_unmount >> $seqres.full 2>&1 > +_scratch_mount >> $seqres.full 2>&1 _exclude_scratch_mount_option "dax" i.e. we skip the test if "-o dax" is in the mount options. We try not to turn off all mount options, because then we never exercise any filesystem configuration other than mount defaults, regardless of what other mount options the tester has specified on the CLI or in config files... > +Silence is golden > diff --git a/tests/generic/group b/tests/generic/group > index 83a6fdab..793f71ed 100644 > --- a/tests/generic/group > +++ b/tests/generic/group > @@ -501,3 +501,4 @@ > 496 auto quick swap > 497 auto quick swap collapse > 498 auto quick log > +999 auto quick dax Why should this be in a "dax" group when the test explicitly turns off the the DAX mount option? Cheers, Dave. -- Dave Chinner david-FqsqvQoI3Ljby3iVrkZq2A@public.gmane.org