From: Johannes Thumshirn <Johannes.Thumshirn@wdc.com>
To: Daniel Wagner <dwagner@suse.de>,
"hch@infradead.org" <hch@infradead.org>,
Stephen Zhang <starzhangzsd@gmail.com>,
Kent Overstreet <kent.overstreet@linux.dev>,
Coly Li <colyli@fnnas.com>,
Shinichiro Kawasaki <shinichiro.kawasaki@wdc.com>,
"linux-block@vger.kernel.org" <linux-block@vger.kernel.org>,
"linux-bcache@vger.kernel.org" <linux-bcache@vger.kernel.org>
Subject: Re: [PATCH blktests] bcache: add bcache/001
Date: Wed, 21 Jan 2026 08:19:08 +0000 [thread overview]
Message-ID: <bc45323c-d261-4ff4-8174-28fbb0676237@wdc.com> (raw)
In-Reply-To: <20260120-bcache-v1-1-59bf0b2d4140@suse.de>
On 1/20/26 3:01 PM, Daniel Wagner wrote:
> +
> +_cleanup_bcache() {
> + local cset dev
> +
> + shopt -s nullglob
> + for dev in /sys/block/bcache* ; do
> + [ -e "${dev}" ] || continue
> +
> + dev=$(basename "${dev}")
> + echo "WARNING: bcache device ${dev} found"
> +
> + if [[ -f/sys/block/"${dev}"/bcache/stop ]]; then
> + echo 1 >/sys/block/"${dev}"/bcache/stop 2>/dev/null || true
> + fi
> + done
> +
> + for cset in/sys/fs/bcache/*-*-*-*-*; do
> + if [[ -d "${cset}" ]]; then
> + echo "WARNING: Unregistering cset $(basename "${cset}")"
> + echo 1 > "${cset}"/unregister 2>/dev/null || true
> + fi
> + done
> + shopt -u nullglob
It's either my MUA or there's some mix of space and tabs here.
next prev parent reply other threads:[~2026-01-21 8:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-20 13:28 [PATCH blktests] bcache: add bcache/001 Daniel Wagner
2026-01-21 7:56 ` Christoph Hellwig
2026-01-21 12:48 ` Daniel Wagner
2026-01-22 6:35 ` Christoph Hellwig
2026-01-22 9:13 ` Shinichiro Kawasaki
2026-01-21 8:19 ` Johannes Thumshirn [this message]
2026-01-21 12:36 ` Daniel Wagner
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=bc45323c-d261-4ff4-8174-28fbb0676237@wdc.com \
--to=johannes.thumshirn@wdc.com \
--cc=colyli@fnnas.com \
--cc=dwagner@suse.de \
--cc=hch@infradead.org \
--cc=kent.overstreet@linux.dev \
--cc=linux-bcache@vger.kernel.org \
--cc=linux-block@vger.kernel.org \
--cc=shinichiro.kawasaki@wdc.com \
--cc=starzhangzsd@gmail.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