From: Ross Zwisler <ross.zwisler@linux.intel.com>
To: Eryu Guan <guaneryu@gmail.com>
Cc: Ross Zwisler <ross.zwisler@linux.intel.com>,
Eryu Guan <eguan@redhat.com>,
fstests@vger.kernel.org, Jan Kara <jack@suse.cz>,
Dan Williams <dan.j.williams@intel.com>,
Dave Chinner <david@fromorbit.com>,
Christoph Hellwig <hch@lst.de>,
linux-nvdimm@lists.01.org, Jeff Moyer <jmoyer@redhat.com>,
linux-ext4@vger.kernel.org
Subject: Re: [fstests PATCH 2/2] generic/999: test DAX DMA vs truncate/hole-punch
Date: Tue, 10 Jul 2018 15:15:19 -0600 [thread overview]
Message-ID: <20180710211519.GA25279@linux.intel.com> (raw)
In-Reply-To: <20180621024033.GK2780@desktop>
On Thu, Jun 21, 2018 at 10:40:33AM +0800, Eryu Guan wrote:
> On Wed, Jun 20, 2018 at 04:51:47PM -0600, Ross Zwisler wrote:
<>
> > diff --git a/tests/generic/999 b/tests/generic/999
> > new file mode 100755
> > index 00000000..8f488cb5
> > --- /dev/null
> > +++ 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 <ross.zwisler@linux.intel.com>
> > +#
> > +seq=`basename $0`
> > +seqres=$RESULT_DIR/$seq
> > +echo "QA output created by $seq"
> > +
> > +here=`pwd`
> > +tmp=/tmp/$$
> > +status=1 # failure is the default!
> > +trap "_cleanup; exit \$status" 0 1 2 3 15
> > +
> > +_cleanup()
> > +{
> > + cd /
> > + rm -f $tmp.*
> > +}
> > +
> > +# get standard environment, filters and checks
> > +. ./common/rc
> > +. ./common/filter
> > +
> > +# remove previous $seqres.full before test
> > +rm -f $seqres.full
> > +
> > +# Modify as appropriate.
> > +_supported_fs generic
> > +_supported_os Linux
> > +_require_test
> > +_require_test_program "t_mmap_collision"
>
> _require_xfs_io_command "fpunch"
> _require_xfs_io_command "fcollapse"
> _require_xfs_io_command "fzero"
I don't think I need these because I don't actually require this functionality
from xfs_io. I did try and use xfs_io for this test, but the way the
threading needs to work I ended up having to write my own C program. So,
even if xfs_io happens to be old and without fpunch, for example, as long as
fallocate can use FALLC_FL_PUNCH_HOLE I think the test should do the right
thing.
> > 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
>
> Also need "punch collapse zero" groups.
I'm assuming I should still add my test to these 3 groups, even though I'm not
getting this functionality via xfs_io?
Thank you for the review, I'll address the rest of your comments in v2.
WARNING: multiple messages have this Message-ID (diff)
From: Ross Zwisler <ross.zwisler-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
To: Eryu Guan <guaneryu-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Jan Kara <jack-AlSwsSmVLrQ@public.gmane.org>,
Eryu Guan <eguan-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
linux-nvdimm-hn68Rpc1hR1g9hUCZPvPmw@public.gmane.org,
Dave Chinner <david-FqsqvQoI3Ljby3iVrkZq2A@public.gmane.org>,
fstests-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Christoph Hellwig <hch-jcswGhMUV9g@public.gmane.org>,
linux-ext4-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [fstests PATCH 2/2] generic/999: test DAX DMA vs truncate/hole-punch
Date: Tue, 10 Jul 2018 15:15:19 -0600 [thread overview]
Message-ID: <20180710211519.GA25279@linux.intel.com> (raw)
In-Reply-To: <20180621024033.GK2780@desktop>
On Thu, Jun 21, 2018 at 10:40:33AM +0800, Eryu Guan wrote:
> On Wed, Jun 20, 2018 at 04:51:47PM -0600, Ross Zwisler wrote:
<>
> > diff --git a/tests/generic/999 b/tests/generic/999
> > new file mode 100755
> > index 00000000..8f488cb5
> > --- /dev/null
> > +++ 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 <ross.zwisler-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
> > +#
> > +seq=`basename $0`
> > +seqres=$RESULT_DIR/$seq
> > +echo "QA output created by $seq"
> > +
> > +here=`pwd`
> > +tmp=/tmp/$$
> > +status=1 # failure is the default!
> > +trap "_cleanup; exit \$status" 0 1 2 3 15
> > +
> > +_cleanup()
> > +{
> > + cd /
> > + rm -f $tmp.*
> > +}
> > +
> > +# get standard environment, filters and checks
> > +. ./common/rc
> > +. ./common/filter
> > +
> > +# remove previous $seqres.full before test
> > +rm -f $seqres.full
> > +
> > +# Modify as appropriate.
> > +_supported_fs generic
> > +_supported_os Linux
> > +_require_test
> > +_require_test_program "t_mmap_collision"
>
> _require_xfs_io_command "fpunch"
> _require_xfs_io_command "fcollapse"
> _require_xfs_io_command "fzero"
I don't think I need these because I don't actually require this functionality
from xfs_io. I did try and use xfs_io for this test, but the way the
threading needs to work I ended up having to write my own C program. So,
even if xfs_io happens to be old and without fpunch, for example, as long as
fallocate can use FALLC_FL_PUNCH_HOLE I think the test should do the right
thing.
> > 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
>
> Also need "punch collapse zero" groups.
I'm assuming I should still add my test to these 3 groups, even though I'm not
getting this functionality via xfs_io?
Thank you for the review, I'll address the rest of your comments in v2.
WARNING: multiple messages have this Message-ID (diff)
From: Ross Zwisler <ross.zwisler@linux.intel.com>
To: Eryu Guan <guaneryu@gmail.com>
Cc: Jan Kara <jack@suse.cz>, Eryu Guan <eguan@redhat.com>,
linux-nvdimm@lists.01.org, Dave Chinner <david@fromorbit.com>,
fstests@vger.kernel.org, Christoph Hellwig <hch@lst.de>,
linux-ext4@vger.kernel.org
Subject: Re: [fstests PATCH 2/2] generic/999: test DAX DMA vs truncate/hole-punch
Date: Tue, 10 Jul 2018 15:15:19 -0600 [thread overview]
Message-ID: <20180710211519.GA25279@linux.intel.com> (raw)
In-Reply-To: <20180621024033.GK2780@desktop>
On Thu, Jun 21, 2018 at 10:40:33AM +0800, Eryu Guan wrote:
> On Wed, Jun 20, 2018 at 04:51:47PM -0600, Ross Zwisler wrote:
<>
> > diff --git a/tests/generic/999 b/tests/generic/999
> > new file mode 100755
> > index 00000000..8f488cb5
> > --- /dev/null
> > +++ 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 <ross.zwisler@linux.intel.com>
> > +#
> > +seq=`basename $0`
> > +seqres=$RESULT_DIR/$seq
> > +echo "QA output created by $seq"
> > +
> > +here=`pwd`
> > +tmp=/tmp/$$
> > +status=1 # failure is the default!
> > +trap "_cleanup; exit \$status" 0 1 2 3 15
> > +
> > +_cleanup()
> > +{
> > + cd /
> > + rm -f $tmp.*
> > +}
> > +
> > +# get standard environment, filters and checks
> > +. ./common/rc
> > +. ./common/filter
> > +
> > +# remove previous $seqres.full before test
> > +rm -f $seqres.full
> > +
> > +# Modify as appropriate.
> > +_supported_fs generic
> > +_supported_os Linux
> > +_require_test
> > +_require_test_program "t_mmap_collision"
>
> _require_xfs_io_command "fpunch"
> _require_xfs_io_command "fcollapse"
> _require_xfs_io_command "fzero"
I don't think I need these because I don't actually require this functionality
from xfs_io. I did try and use xfs_io for this test, but the way the
threading needs to work I ended up having to write my own C program. So,
even if xfs_io happens to be old and without fpunch, for example, as long as
fallocate can use FALLC_FL_PUNCH_HOLE I think the test should do the right
thing.
> > 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
>
> Also need "punch collapse zero" groups.
I'm assuming I should still add my test to these 3 groups, even though I'm not
getting this functionality via xfs_io?
Thank you for the review, I'll address the rest of your comments in v2.
_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm
next prev parent reply other threads:[~2018-07-10 21:16 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-20 22:51 [fstests PATCH 1/2] src/: fix up mmap() error checking Ross Zwisler
2018-06-20 22:51 ` Ross Zwisler
2018-06-20 22:51 ` Ross Zwisler
2018-06-20 22:51 ` [fstests PATCH 2/2] generic/999: test DAX DMA vs truncate/hole-punch Ross Zwisler
2018-06-20 22:51 ` Ross Zwisler
2018-06-20 22:51 ` Ross Zwisler
2018-06-21 2:18 ` Dave Chinner
2018-06-21 2:18 ` Dave Chinner
2018-06-21 2:18 ` Dave Chinner
2018-06-21 16:34 ` Ross Zwisler
2018-06-21 16:34 ` Ross Zwisler
2018-06-21 16:34 ` Ross Zwisler
2018-06-21 2:40 ` Eryu Guan
2018-06-21 2:40 ` Eryu Guan
2018-06-21 2:40 ` Eryu Guan
2018-07-10 21:15 ` Ross Zwisler [this message]
2018-07-10 21:15 ` Ross Zwisler
2018-07-10 21:15 ` Ross Zwisler
2018-06-22 2:28 ` [fstests PATCH 1/2] src/: fix up mmap() error checking Eryu Guan
2018-06-22 2:28 ` Eryu Guan
2018-06-22 2:28 ` Eryu Guan
2018-06-22 16:19 ` Ross Zwisler
2018-06-22 16:19 ` Ross Zwisler
2018-06-22 16:19 ` Ross Zwisler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180710211519.GA25279@linux.intel.com \
--to=ross.zwisler@linux.intel.com \
--cc=dan.j.williams@intel.com \
--cc=david@fromorbit.com \
--cc=eguan@redhat.com \
--cc=fstests@vger.kernel.org \
--cc=guaneryu@gmail.com \
--cc=hch@lst.de \
--cc=jack@suse.cz \
--cc=jmoyer@redhat.com \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-nvdimm@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.