From: Dave Chinner <david@fromorbit.com>
To: Christoph Hellwig <hch@lst.de>
Cc: zlang@kernel.org, fstests@vger.kernel.org, linux-xfs@vger.kernel.org
Subject: Re: [PATCH] common: remove USE_EXTERNAL
Date: Wed, 16 Apr 2025 09:36:42 +1000 [thread overview]
Message-ID: <Z_7tirRVx9Bt60si@dread.disaster.area> (raw)
In-Reply-To: <20250414054205.361383-1-hch@lst.de>
On Mon, Apr 14, 2025 at 07:42:05AM +0200, Christoph Hellwig wrote:
> The USE_EXTERNAL variable indicates that dedicated log or RT devices are
> in use for the scratch and possibly test device. It gets automatically
> set when needed
No it isn't - it's explicitly controlled by config file parsing
and/or config env variable setup.
> and generally does not provide any benefit over simply
> testing the SCRATCH_LOGDEV and SCRATCH_RTDEV variables.
>
> Remove it and replace that test with test for SCRATCH_LOGDEV and
> SCRATCH_RTDEV, using the more readable if-based syntaxt for all tests
> touched by this change.
This breaks the way I've set up check-parallel devices. I always
create the external devices, and then trigger where they are in use
by config sections that define USE_EXTERNAL.
Hence changing all this code to check if SCRATCH_LOGDEV and/or
SCRATCH_RTDEV are defined instead of gating them on USE_EXTERNAL
breaks any test environment that has those devices defined but does
not set USE_EXTERNAL....
-Dave.
--
Dave Chinner
david@fromorbit.com
prev parent reply other threads:[~2025-04-15 23:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-14 5:42 [PATCH] common: remove USE_EXTERNAL Christoph Hellwig
2025-04-15 0:44 ` Darrick J. Wong
2025-04-15 23:38 ` Dave Chinner
2025-04-15 23:36 ` 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=Z_7tirRVx9Bt60si@dread.disaster.area \
--to=david@fromorbit.com \
--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