From: Dave Chinner <david@fromorbit.com>
To: Ari Sundholm <ari@tuxera.com>
Cc: fstests@vger.kernel.org
Subject: Re: [PATCH 1/2 v2] Add checks for hard links support.
Date: Mon, 31 Aug 2015 09:43:33 +1000 [thread overview]
Message-ID: <20150830234333.GM3902@dastard> (raw)
In-Reply-To: <1440757500.29614.26.camel@ari-macbook>
On Fri, Aug 28, 2015 at 01:25:00PM +0300, Ari Sundholm wrote:
> From: Ari Sundholm <ari@tuxera.com>
>
> There are filesystems that do not support hard links that we want to run
> xfstests on. Add a function for checking for support and use it wherever
> hard links are used.
As I've already pointed out, all of the filesystems that xfstests
supports have working hardlinks, so this is a test that will never
fail for anyone running xfstests on supported filesystems.
Also, I'm left to wonder what kernel filesystem supports
journaling but does not support hardlinks (as noted by the number of
tests you change that have "_require_metadata_journaling"). Why
aren't you also posting the patches to support the filesystem that
requires this "don't use hardlinks" patch?
And FWIW:
> +_require_test_hardlinks()
> +{
> + target=`mktemp -p $TEST_DIR`
> + link=`mktemp -p $TEST_DIR -u`
> + ln `basename $target` $link
> + if [ "$?" -ne 0 ]; then
> + rm -f $target
> + _notrun "Require hardlinks support"
> + fi
> + rm -f $target $link
> +}
You check for support on the TEST_DEV, but ...
> diff --git a/tests/generic/039 b/tests/generic/039
> index 4bbfc50..367a6d0 100755
> --- a/tests/generic/039
> +++ b/tests/generic/039
> @@ -55,6 +55,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
> _supported_fs generic
> _supported_os Linux
> _need_to_be_root
> +_require_test_hardlinks
> _require_scratch
> _require_dm_flakey
> _require_metadata_journaling $SCRATCH_DEV
All but two of the tests you've added this check to make hard links
on the SCRATCH_DEV, which can have a different configuration to the
TEST_DEV.
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
next prev parent reply other threads:[~2015-08-30 23:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-28 10:25 [PATCH 1/2 v2] Add checks for hard links support Ari Sundholm
2015-08-30 23:43 ` Dave Chinner [this message]
2015-08-31 0:21 ` Dave Chinner
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=20150830234333.GM3902@dastard \
--to=david@fromorbit.com \
--cc=ari@tuxera.com \
--cc=fstests@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox