Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: Zorro Lang <zlang@kernel.org>
To: Christoph Hellwig <hch@infradead.org>
Cc: Qu Wenruo <wqu@suse.com>,
	fstests@vger.kernel.org,  linux-btrfs@vger.kernel.org,
	Xiao Yang <yangx.jy@fujitsu.com>
Subject: Re: [PATCH RFC] fstests: use MOUNT_OPTIONS to populate TEST_FS_MOUNT_OPTS if possible
Date: Sun, 7 Jun 2026 03:33:44 +0800	[thread overview]
Message-ID: <aiRsmJKtqR23Blox@zlang-mailbox> (raw)
In-Reply-To: <aiJM6o982CKp7v_y@infradead.org>

On Thu, Jun 04, 2026 at 09:13:30PM -0700, Christoph Hellwig wrote:
> On Fri, Jun 05, 2026 at 12:46:13AM +0800, Zorro Lang wrote:
> > Right now, the biggest inconsistent issue is probably with those feature-probing
> > helpers. They often check TEST_DIR to determine behaviors for SCRATCH_MNT. While
> > this works fine for features unaffected by mount options, but we might should
> > handle mount options related features (for TEST_DEV or SCRATCH_DEV) separately.
> 
> Yes, I've run into a lot of issues when TEST_DIR has more feature than
> SCRATCH_DEV.  The problem is just that feature testing for scratch is
> a bit annoying because we have to create a file system for it first.

Yeah, if we make those _require_*feature or _has_*feature helpers accept a
parameter like "local dev="${TEST_DEV:-$1}" to allow specifying $SCRATCH_DEV,
it would mean we can only call these helpers after running _scratch_mkfs or
even _scratch_mount. I haven't come up with a better idea for now ...

> 
> It might make sense to catch some of the results, but then again we have
> tests that override options for the scratch side so that this won't
> apply.
> 
> I've been wanting to look into splitting the scratch tests up into those
> that "just" format the file systems, and those testing very specific
> corners cases using special options.  Especially as we should not have
> to run the latter multiple times for different configurations.

Hopefully, specifying the same TEST_FS_MOUNT_OPTS and MOUNT_OPTIONS for XFS
can help resolve some of the issues you encountered. But that doesn't help if
your TEST_DEV and SCRATCH_DEV are different devices.

About separating "corner cases using special options", xfstests always welcome
"finer-grained" group tags to better categorize and differentiate these test
cases.

Thanks,
Zorro

> 
> 

  reply	other threads:[~2026-06-06 19:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-02  0:14 [PATCH RFC] fstests: use MOUNT_OPTIONS to populate TEST_FS_MOUNT_OPTS if possible Qu Wenruo
2026-06-02  6:13 ` Christoph Hellwig
2026-06-04 16:46   ` Zorro Lang
2026-06-05  4:13     ` Christoph Hellwig
2026-06-06 19:33       ` Zorro Lang [this message]
2026-06-04 17:48 ` Zorro Lang
2026-06-06  9:22   ` Qu Wenruo

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=aiRsmJKtqR23Blox@zlang-mailbox \
    --to=zlang@kernel.org \
    --cc=fstests@vger.kernel.org \
    --cc=hch@infradead.org \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=wqu@suse.com \
    --cc=yangx.jy@fujitsu.com \
    /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