All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Armbruster <armbru@pond.sub.org>
To: Eric Blake <eblake@redhat.com>
Cc: qemu-devel@nongnu.org,  Kevin Wolf <kwolf@redhat.com>,
	 Hanna Czenczek <hreitz@redhat.com>
Subject: Re: How to replace deprecated nbd-server-add by block-export-add
Date: Fri, 04 Dec 2026 10:49:20 +0100	[thread overview]
Message-ID: <874ict8jfj.fsf@pond.sub.org> (raw)
In-Reply-To: <87ik198k92.fsf@pond.sub.org> (Markus Armbruster's message of "Fri, 04 Dec 2026 10:31:37 +0100")

Markus Armbruster <armbru@pond.sub.org> writes:

[...]

> This enables several kinds of interfaces:
>
> * Accept both a device and a node name.  This is problematic.  What if
>   you give both, and they resolve to different nodes?  The device name
>   would take precedence.  Can't find examples in the schema, but see the
>   next item.
>
> * Accept either a device or a node name, but not both.  Example:
>   block_resize, blockdev-snapshot-sync.  As far as I can tell, these do
>   not enforce "not both".  Instead, the device name takes precedence.
>   So this is actually the previous item's problematic interface.
>
> * Accept a single name with overloaded meaning, i.e. device or else node
>   name.  The parameter is commonly called @node-name, which could
>   perhaps be confusing.  Example: drive-backup, blockdev-backup,
>   change-backing-file, block-commit, drive-mirror, blockdev-mirror,
>   block-stream, blockdev-snapshot-internal-sync,
>   blockdev-snapshot-delete-internal-sync, nbd-server-add.

This is of course also problematic, because the name spaces aren't
separate.  If you have a block backend named "fred" *and* a node named
"fred", you get the block backend's node, not the node.  Even though the
parameter is called @node-name.  Trap for the unwary.

> * Accept only node name.  Example: blockdev-del, blockdev-set-active,
>   block-set-write-threshold, blockdev-insert-medium, block-export-add.
>
> * Accept only device name.  Can't find examples offhand.
>
> Having three kinds is unfortunate.  But it is what it is.

[...]


  reply	other threads:[~2026-12-04  9:50 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 [this message]
2026-12-04 13:33     ` Kevin Wolf
2026-12-05  7:18       ` Markus Armbruster
2026-12-04 13:43 ` Kevin Wolf

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=874ict8jfj.fsf@pond.sub.org \
    --to=armbru@pond.sub.org \
    --cc=eblake@redhat.com \
    --cc=hreitz@redhat.com \
    --cc=kwolf@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.