All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kevin Wolf <kwolf@redhat.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: qemu-devel@nongnu.org, Eric Blake <eblake@redhat.com>,
	Hanna Czenczek <hreitz@redhat.com>
Subject: Re: How to replace deprecated nbd-server-add by block-export-add
Date: Fri, 4 Dec 2026 14:43:25 +0100	[thread overview]
Message-ID: <axLDfTthRZrY2QxG@redhat.com> (raw)
In-Reply-To: <87ik1ably8.fsf@pond.sub.org>

Am 03.12.2026 um 13:14 hat Markus Armbruster geschrieben:
> When replacing an nbd-server-add command by a block_export_type_nbd
> command
> [...]
> * "node name of @device" is the spicy one:
> 
>   - If @device is a node name, I need to pass that.  Not a problem.
> 
>   - If @device is a device name, I need to figure out its node name, and
>     pass that.
> 
>     · If the thing was created with a user-specified node name, I need
>       to find the command that created it in the test / the doc example.
>       Not a problem.
> 
>     · Else, the node name is something QEMU made up on the spot, such as
>       "#block158".  Problem: I can't predict that name.
> 
>       Is block-export-add missing a way to specify a device name?
> 
>       Or is exporting something without a node-name deprecated without
>       replacement?

Just setting a node-name is the easiest way, I don't think there is ever
a reason not to do this. (It would also be a nice opportunity to stop
using -drive, except maybe in test cases explicitly testing -drive, but
that makes the change a bit bigger.)

If you insist on using BlockBackend names only when creating the VM,
it's a bit more involved, but 'query-block' can tell you the node name
of a given BlockBackend even if it's automatically generated, and then
you can use that.

Kevin



      parent reply	other threads:[~2026-12-04 13:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03 12:14 How to replace deprecated nbd-server-add by block-export-add Markus Armbruster
2026-12-03 17:06 ` Eric Blake
2026-12-04  9:31   ` Markus Armbruster
2026-12-04  9:49     ` Markus Armbruster
2026-12-04 13:33     ` Kevin Wolf
2026-12-05  7:18       ` Markus Armbruster
2026-12-04 13:43 ` Kevin Wolf [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=axLDfTthRZrY2QxG@redhat.com \
    --to=kwolf@redhat.com \
    --cc=armbru@redhat.com \
    --cc=eblake@redhat.com \
    --cc=hreitz@redhat.com \
    --cc=qemu-devel@nongnu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.