From: Dave Chinner <david@fromorbit.com>
To: Mark Fasheh <mfasheh@suse.de>
Cc: fstests@vger.kernel.org
Subject: Re: [PATCH] btrfs/149: don't run if PAGE_SIZE > 4096
Date: Sat, 23 Jun 2018 08:16:25 +1000 [thread overview]
Message-ID: <20180622221625.GE13748@dastard> (raw)
In-Reply-To: <20180622213843.GF28053@wotan.suse.de>
On Fri, Jun 22, 2018 at 11:38:43PM +0200, Mark Fasheh wrote:
> The test assumes a 4K block size and fails on larger block sizes - the
> extent layout will not match and the reflink command will fail.
The usual way of fixing this is it use 64k sizes and offsets for IO
rather than 4k, and change the output to match. That way the test
should behave the same across all supported block and page sizes.
>
> Signed-off-by: Mark Fasheh <mfasheh@suse.de>
> ---
> tests/btrfs/149 | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/tests/btrfs/149 b/tests/btrfs/149
> index 3e955a30..64bc8ac3 100755
> --- a/tests/btrfs/149
> +++ b/tests/btrfs/149
> @@ -37,6 +37,12 @@ _require_scratch
> _require_scratch_reflink
> _require_odirect
>
> +# Test output will not match results if page size > 4096
> +PAGE_SIZE=`getconf PAGE_SIZE`
> +if [ $PAGE_SIZE -gt 4096 ]; then
> + _notrun "Not supported with page size > 4096"
> +fi
FWIW, the commi description talks about block sizes - this tests the
machien page size, not the filesystem block size....
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
prev parent reply other threads:[~2018-06-22 22:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-22 21:38 [PATCH] btrfs/149: don't run if PAGE_SIZE > 4096 Mark Fasheh
2018-06-22 22:16 ` Dave Chinner [this message]
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=20180622221625.GE13748@dastard \
--to=david@fromorbit.com \
--cc=fstests@vger.kernel.org \
--cc=mfasheh@suse.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