From: Coly Li <colyli@suse.de>
To: Marc Smith <msmith626@gmail.com>,
linux-bcache <linux-bcache@vger.kernel.org>
Subject: Re: [PATCH] bcache-tools: bcache-export-cached doesn't match backing device w/ offset, features
Date: Thu, 3 Jun 2021 23:05:23 +0800 [thread overview]
Message-ID: <c86559d8-f13b-dd0d-f1f1-ea992a898b8b@suse.de> (raw)
In-Reply-To: <CAH6h+he=rxPq9E8zmenmLp9vc9X4D1-6OQqVm0XyeMei3uLgqg@mail.gmail.com>
On 5/12/21 3:06 AM, Marc Smith wrote:
> updated the awk snippet used in 'bcache-export-cached' so it matches the three
> current superblock versions of a "backing" device (BCACHE_SB_VERSION_BDEV,
> BCACHE_SB_VERSION_BDEV_WITH_OFFSET, BCACHE_SB_VERSION_BDEV_WITH_FEATURES)
>
> Signed-off-by: Marc A. Smith <marc.smith@quantum.com>
> ---
> bcache-export-cached | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/bcache-export-cached b/bcache-export-cached
> index b345922..e6c1bc3 100644
> --- a/bcache-export-cached
> +++ b/bcache-export-cached
> @@ -19,7 +19,7 @@ for slave in "/sys/class/block/$DEVNAME/slaves"/*; do
> $1 == "dev.uuid" { uuid=$2; }
> $1 == "dev.label" && $2 != "(empty)" { label=$2; }
> END {
> - if (sbver == 1 && uuid) {
> + if ((sbver == 1 || sbver == 4 || sbver == 6) && uuid) {
> print("CACHED_UUID=" uuid)
> if (label) print("CACHED_LABEL=" label)
> exit(0)
Applied. Thanks.
Coly Li
prev parent reply other threads:[~2021-06-03 15:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-11 19:06 [PATCH] bcache-tools: bcache-export-cached doesn't match backing device w/ offset, features Marc Smith
2021-06-03 15:05 ` Coly Li [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=c86559d8-f13b-dd0d-f1f1-ea992a898b8b@suse.de \
--to=colyli@suse.de \
--cc=linux-bcache@vger.kernel.org \
--cc=msmith626@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;
as well as URLs for NNTP newsgroup(s).