All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] docs: qsd: Explain --export nbd,name=... default
@ 2021-03-05  9:48 Kevin Wolf
  2021-03-05 15:06 ` Max Reitz
  2021-03-05 19:40 ` Eric Blake
  0 siblings, 2 replies; 3+ messages in thread
From: Kevin Wolf @ 2021-03-05  9:48 UTC (permalink / raw)
  To: qemu-block; +Cc: kwolf, qemu-devel

The 'name' option for NBD exports is optional. Add a note that the
default for the option is the node name (people could otherwise expect
that it's the empty string like for qemu-nbd).

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
---
 docs/tools/qemu-storage-daemon.rst | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/docs/tools/qemu-storage-daemon.rst b/docs/tools/qemu-storage-daemon.rst
index fe3042d609..086493ebb3 100644
--- a/docs/tools/qemu-storage-daemon.rst
+++ b/docs/tools/qemu-storage-daemon.rst
@@ -80,8 +80,9 @@ Standard options:
   requests for modifying data (the default is off).
 
   The ``nbd`` export type requires ``--nbd-server`` (see below). ``name`` is
-  the NBD export name. ``bitmap`` is the name of a dirty bitmap reachable from
-  the block node, so the NBD client can use NBD_OPT_SET_META_CONTEXT with the
+  the NBD export name (if not specified, it defaults to the given
+  ``node-name``). ``bitmap`` is the name of a dirty bitmap reachable from the
+  block node, so the NBD client can use NBD_OPT_SET_META_CONTEXT with the
   metadata context name "qemu:dirty-bitmap:BITMAP" to inspect the bitmap.
 
   The ``vhost-user-blk`` export type takes a vhost-user socket address on which
-- 
2.29.2



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] docs: qsd: Explain --export nbd,name=... default
  2021-03-05  9:48 [PATCH] docs: qsd: Explain --export nbd,name=... default Kevin Wolf
@ 2021-03-05 15:06 ` Max Reitz
  2021-03-05 19:40 ` Eric Blake
  1 sibling, 0 replies; 3+ messages in thread
From: Max Reitz @ 2021-03-05 15:06 UTC (permalink / raw)
  To: Kevin Wolf, qemu-block; +Cc: qemu-devel

On 05.03.21 10:48, Kevin Wolf wrote:
> The 'name' option for NBD exports is optional. Add a note that the
> default for the option is the node name (people could otherwise expect
> that it's the empty string like for qemu-nbd).
> 
> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
> ---
>   docs/tools/qemu-storage-daemon.rst | 5 +++--
>   1 file changed, 3 insertions(+), 2 deletions(-)

Reviewed-by: Max Reitz <mreitz@redhat.com>



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] docs: qsd: Explain --export nbd,name=... default
  2021-03-05  9:48 [PATCH] docs: qsd: Explain --export nbd,name=... default Kevin Wolf
  2021-03-05 15:06 ` Max Reitz
@ 2021-03-05 19:40 ` Eric Blake
  1 sibling, 0 replies; 3+ messages in thread
From: Eric Blake @ 2021-03-05 19:40 UTC (permalink / raw)
  To: Kevin Wolf, qemu-block; +Cc: qemu-devel

On 3/5/21 3:48 AM, Kevin Wolf wrote:
> The 'name' option for NBD exports is optional. Add a note that the
> default for the option is the node name (people could otherwise expect
> that it's the empty string like for qemu-nbd).
> 
> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
> ---
>  docs/tools/qemu-storage-daemon.rst | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)

Hmm. If we are only exporting a single image, letting "" serve as the
default export name as a synonym for the non-empty node-name might be
nice.  But we can export more than one image at a time, at which point
"" has no sane default, so always requiring the client to know the node
name is tolerable.  And 'qemu-nbd --list' or 'nbdinfo --list' are
capable of showing which node name(s) an NBD server is exposing.

Reviewed-by: Eric Blake <eblake@redhat.com>

> 
> diff --git a/docs/tools/qemu-storage-daemon.rst b/docs/tools/qemu-storage-daemon.rst
> index fe3042d609..086493ebb3 100644
> --- a/docs/tools/qemu-storage-daemon.rst
> +++ b/docs/tools/qemu-storage-daemon.rst
> @@ -80,8 +80,9 @@ Standard options:
>    requests for modifying data (the default is off).
>  
>    The ``nbd`` export type requires ``--nbd-server`` (see below). ``name`` is
> -  the NBD export name. ``bitmap`` is the name of a dirty bitmap reachable from
> -  the block node, so the NBD client can use NBD_OPT_SET_META_CONTEXT with the
> +  the NBD export name (if not specified, it defaults to the given
> +  ``node-name``). ``bitmap`` is the name of a dirty bitmap reachable from the
> +  block node, so the NBD client can use NBD_OPT_SET_META_CONTEXT with the
>    metadata context name "qemu:dirty-bitmap:BITMAP" to inspect the bitmap.
>  
>    The ``vhost-user-blk`` export type takes a vhost-user socket address on which
> 

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-03-05 19:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-05  9:48 [PATCH] docs: qsd: Explain --export nbd,name=... default Kevin Wolf
2021-03-05 15:06 ` Max Reitz
2021-03-05 19:40 ` Eric Blake

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.