qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-block] [PATCH v5 11/11] nbd-server: Allow node name for nbd-se


From: Max Reitz
Subject: Re: [Qemu-block] [PATCH v5 11/11] nbd-server: Allow node name for nbd-server-add
Date: Wed, 3 Aug 2016 18:12:46 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

On 03.08.2016 13:21, Kevin Wolf wrote:
> There is no reason why an NBD server couldn't be started for any node,
> even if it's not on the top level. This converts nbd-server-add to
> accept a node-name.
> 
> Note that there is a semantic difference between using a BlockBackend
> name and the node name of its root: In the former case, the NBD server
> is closed on eject; in the latter case, the NBD server doesn't drop its
> reference and keeps the image file open this way.
> 
> Signed-off-by: Kevin Wolf <address@hidden>
> ---
>  blockdev-nbd.c  | 21 +++++++++------------
>  qapi/block.json |  4 ++--
>  2 files changed, 11 insertions(+), 14 deletions(-)

Well, while I concede that it's possible to create R/W NBD servers on
basically any node even today, I share Eric's concern that we shouldn't
make it so simple.

On the other hand, given COLO, I can't think of any simple solution to
this. As far as I'm aware, COLO will make use of R/W NBD servers on
backing nodes, so we can't just disallow creation of R/W servers on
non-root nodes.

So I guess your take on this is that it was already possible to create
NBD servers wherever you so pleased and that we should just put this off
until we have better op blockers?

Max

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]