All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dave Chinner <david@fromorbit.com>
To: Anju T Sudhakar <anju@linux.vnet.ibm.com>
Cc: fstests@vger.kernel.org
Subject: Re: [PATCH 1/4] xfs/432: Skip this test for dax config and pagesize not equal to the specified block size
Date: Mon, 11 Oct 2021 19:27:34 +1100	[thread overview]
Message-ID: <20211011082734.GA1164794@dread.disaster.area> (raw)
In-Reply-To: <20211011075552.196688-2-anju@linux.vnet.ibm.com>

On Mon, Oct 11, 2021 at 01:25:49PM +0530, Anju T Sudhakar wrote:
> This test case passes 1k as the block size(to keep that as minimum),
> and hence it fails to mount with "-o dax" option on platforms where
> pageszie not equal to the specified block size. This leads to test
> case reported as "failed" with dax config.
> 
> So skip this test when dax is enabled.
> 
> Signed-off-by: Anju T Sudhakar <anju@linux.vnet.ibm.com>
> ---
>  tests/xfs/432 | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/tests/xfs/432 b/tests/xfs/432
> index 40cb2474..9022af69 100755
> --- a/tests/xfs/432
> +++ b/tests/xfs/432
> @@ -32,6 +32,10 @@ _require_scratch
>  
>  rm -f "$seqres.full"
>  
> +# Skip this test, if pagesize !=1k and dax is enabled.
> +if [[ $(get_page_size) -ne 1024 ]]; then
> +	_exclude_scratch_mount_option dax
> +fi

Page size will never be 1kB so there's no point even checking the
page size here.

The problem here is that exclusing the dax mount option is
completely wrong when "-o dax=never" is used - it means that even
though the storage hardware is DAX capable, don't use dax at all,
and so tests that use 1kB block sizes will actaully work.

IOWs, this test should run if dax=never or dax=inode is set, but not
if dax=always or just plain "dax" is set...

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

  reply	other threads:[~2021-10-11  8:27 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-11  7:55 [PATCH 0/4] Random fixes for xfstest Anju T Sudhakar
2021-10-11  7:55 ` [PATCH 1/4] xfs/432: Skip this test for dax config and pagesize not equal to the specified block size Anju T Sudhakar
2021-10-11  8:27   ` Dave Chinner [this message]
2021-10-11  7:55 ` [PATCH 2/4] generic/594: Fix test failure for xfs on older quota-tools Anju T Sudhakar
2021-10-11  8:32   ` Dave Chinner
2021-10-11 16:46   ` Darrick J. Wong
2021-10-12  2:57     ` Eryu Guan
2021-10-12  5:25       ` xuyang2018.jy
2021-10-11  7:55 ` [PATCH 3/4] generic/600: Fix this test on xfs with " Anju T Sudhakar
2021-10-11  7:55 ` [PATCH 4/4] generic/219: Fix test failure on 64k block size Anju T Sudhakar
2021-10-11  8:36   ` Dave Chinner
2021-10-12 17:33     ` Theodore Ts'o

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=20211011082734.GA1164794@dread.disaster.area \
    --to=david@fromorbit.com \
    --cc=anju@linux.vnet.ibm.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 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.