From: Eryu Guan <eguan@redhat.com>
To: Christoph Hellwig <hch@lst.de>
Cc: fstests@vger.kernel.org
Subject: Re: [PATCH 1/2] generic/407: check that destination timestamps are updated on clone
Date: Sat, 4 Feb 2017 12:15:26 +0800 [thread overview]
Message-ID: <20170204041526.GF1859@eguan.usersys.redhat.com> (raw)
In-Reply-To: <20170203095839.8007-2-hch@lst.de>
On Fri, Feb 03, 2017 at 10:58:38AM +0100, Christoph Hellwig wrote:
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> ---
> tests/generic/407 | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++
> tests/generic/407.out | 2 ++
> tests/generic/group | 1 +
> 3 files changed, 88 insertions(+)
> create mode 100755 tests/generic/407
> create mode 100644 tests/generic/407.out
>
> diff --git a/tests/generic/407 b/tests/generic/407
> new file mode 100755
> index 00000000..0fd111ca
> --- /dev/null
> +++ b/tests/generic/407
> @@ -0,0 +1,85 @@
> +#! /bin/bash
> +# FS QA Test No. 407
> +#
> +# Verify that mtime is updated when cloning files
> +#
> +#-----------------------------------------------------------------------
> +#
> +# Copyright (c) 2017 Christoph Hellwig. All Rights Reserved.
> +# This program is free software; you can redistribute it and/or
> +# modify it under the terms of the GNU General Public License as
> +# published by the Free Software Foundation.
> +#
> +# This program is distributed in the hope that it would be useful,
> +# but WITHOUT ANY WARRANTY; without even the implied warranty of
> +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> +# GNU General Public License for more details.
> +#
> +# You should have received a copy of the GNU General Public License
> +# along with this program; if not, write the Free Software Foundation,
> +# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> +#-----------------------------------------------------------------------
> +#
> +
> +seq=`basename $0`
> +seqres=$RESULT_DIR/$seq
> +echo "QA output created by $seq"
> +
> +here=`pwd`
> +status=0
> +trap "_cleanup; exit \$status" 0 1 2 3 15
> +
> +_cleanup()
> +{
> + cd /
> + rm -f $sourcefile
> + rm -f $destfile
> +}
> +
> +# get standard environment, filters and checks
> +. ./common/rc
> +. ./common/filter
> +. common/reflink
For consistency, ". ./common/reflink" looks better.
> +
> +# real QA test starts here
> +_supported_fs generic
> +_supported_os Linux
> +
> +_require_test
> +_require_test_reflink
> +_require_cp_reflink
This seems not necessary, cp is not used and xfs_io reflink command is
checked in _require_test_reflink.
Otherwise looks good to me. I can fix them at commit time.
Thanks,
Eryu
next prev parent reply other threads:[~2017-02-04 4:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-03 9:58 clone/dedup timestamp tests V2 Christoph Hellwig
2017-02-03 9:58 ` [PATCH 1/2] generic/407: check that destination timestamps are updated on clone Christoph Hellwig
2017-02-04 4:15 ` Eryu Guan [this message]
2017-02-04 10:02 ` Christoph Hellwig
2017-02-03 9:58 ` [PATCH 2/2] generic/408: check that destination timestamps are not updated on dedupe Christoph Hellwig
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=20170204041526.GF1859@eguan.usersys.redhat.com \
--to=eguan@redhat.com \
--cc=fstests@vger.kernel.org \
--cc=hch@lst.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox