public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: "Theodore Ts'o" <tytso@mit.edu>
To: Christoph Hellwig <hch@lst.de>
Cc: Zorro Lang <zlang@kernel.org>,
	"Darrick J. Wong" <djwong@kernel.org>,
	fstests@vger.kernel.org, linux-xfs@vger.kernel.org
Subject: Re: RFC: don't fail tests when mkfs options collide
Date: Mon, 22 Jul 2024 23:50:16 -0400	[thread overview]
Message-ID: <20240723035016.GB3222663@mit.edu> (raw)
In-Reply-To: <20240723000042.240981-1-hch@lst.de>

On Mon, Jul 22, 2024 at 05:00:31PM -0700, Christoph Hellwig wrote:
> Hi all,
> 
> I've been running some tests with forced large log sizes, and forced
> sector sizes, and get a fair amount of failures because these options
> collide with options forced by the tests themselves.  The series here was
> my attempt to fix this by not failing the tests in this case but _notrun
> them and print the options that caused them to fail.

Yeah, it's a bit of a mess.  It's not been an issue for ext4 because
mkfs.ext4 allows options specified later in the command-line to
override earlier ones.

> So what could we do instead?  We might distinguish better between tests
> that just want to create a scratch file system with $MKFS_OPTIONS from
> the xfstests config, and those (file system specific ones) that want
> to force very specific file system configurations.  How do we get
> there?

There's a third possibility, which is sometimes the test might
explicitly want the mkfs options to be merged together.  For example,
in the ext4/4k configuration we have "-b 4096", while the ext4/1k
confiuration option we might have "-b 1024".  And we might want to
have that *combined* with a test which is enabling fscrypt feature, so
we can test fscrypt with a 4k block size, as well as fsvrypt with a 1k
blocksize.

That being said, that doesn't always make sense, and sometimes the
combination doesn't make any sense.

It's not clear what the best solution should be.

     	       	    	     - Ted

  parent reply	other threads:[~2024-07-23  3:50 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-23  0:00 RFC: don't fail tests when mkfs options collide Christoph Hellwig
2024-07-23  0:00 ` [PATCH 1/4] common: _notrun if _scratch_mkfs_sized failed Christoph Hellwig
2024-07-23  0:00 ` [PATCH 2/4] common: _notrun if _scratch_mkfs_xfs failed Christoph Hellwig
2024-07-26 17:14   ` Zorro Lang
2024-07-26 18:11     ` Christoph Hellwig
2024-07-28 14:54   ` Zorro Lang
2024-07-29 14:17     ` Christoph Hellwig
2024-07-23  0:00 ` [PATCH 3/4] xfs/432: use _scratch_mkfs_xfs Christoph Hellwig
2024-07-23  0:00 ` [PATCH 4/4] xfs/516: " Christoph Hellwig
2024-07-23  3:50 ` Theodore Ts'o [this message]
2024-07-23 13:39   ` RFC: don't fail tests when mkfs options collide Christoph Hellwig
2024-07-23 14:17     ` Theodore Ts'o
2024-07-23 14:20       ` Christoph Hellwig
2024-07-26 16:20       ` Darrick J. Wong
2024-07-26 17:11         ` Christoph Hellwig
2024-07-28  2:24           ` Darrick J. Wong

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=20240723035016.GB3222663@mit.edu \
    --to=tytso@mit.edu \
    --cc=djwong@kernel.org \
    --cc=fstests@vger.kernel.org \
    --cc=hch@lst.de \
    --cc=linux-xfs@vger.kernel.org \
    --cc=zlang@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