Received: from eggs.gnu.org ([2001:4830:134:3::10]:60769) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUynQ-0006Zp-5r for qemu-devel@nongnu.org; Wed, 03 Aug 2016 12:13:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bUynJ-0004NJ-08 for qemu-devel@nongnu.org; Wed, 03 Aug 2016 12:13:27 -0400 References: <1470223294-3870-1-git-send-email-kwolf@redhat.com> <1470223294-3870-12-git-send-email-kwolf@redhat.com> From: Max Reitz Message-ID: <30184b02-eab8-2f26-5834-1bb2a28219a9@redhat.com> Date: Wed, 3 Aug 2016 18:12:46 +0200 MIME-Version: 1.0 In-Reply-To: <1470223294-3870-12-git-send-email-kwolf@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Qord1Me3iCI2CbfANjbmqjdCtJO2mQDE0" Subject: Re: [Qemu-devel] [PATCH v5 11/11] nbd-server: Allow node name for nbd-server-add List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf , qemu-block@nongnu.org Cc: eblake@redhat.com, berto@igalia.com, qemu-devel@nongnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Qord1Me3iCI2CbfANjbmqjdCtJO2mQDE0 From: Max Reitz To: Kevin Wolf , qemu-block@nongnu.org Cc: eblake@redhat.com, berto@igalia.com, qemu-devel@nongnu.org Message-ID: <30184b02-eab8-2f26-5834-1bb2a28219a9@redhat.com> Subject: Re: [PATCH v5 11/11] nbd-server: Allow node name for nbd-server-add References: <1470223294-3870-1-git-send-email-kwolf@redhat.com> <1470223294-3870-12-git-send-email-kwolf@redhat.com> In-Reply-To: <1470223294-3870-12-git-send-email-kwolf@redhat.com> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable 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. >=20 > 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. >=20 > Signed-off-by: Kevin Wolf > --- > 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 --Qord1Me3iCI2CbfANjbmqjdCtJO2mQDE0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEvBAEBCAAZBQJXohf+EhxtcmVpdHpAcmVkaGF0LmNvbQAKCRA7sUIC6DisrTgc CACpPWk8ihIxMhAj/BCxBFGk0HUjm1/TRXrtfV5zmlQTG+YkqVCplsJB6tx74TJw 3yOnoRSUlWx6YgMbAzgMYDowNqYJIlu7vd0B8xLiLJJz2rBgWn9sBimkV8QgLtqD lZfWu1SAVGn5svFAQH2ChhQPweZmI4diWE2tXdcN8MWECi2nECOk8QExpte5u0sJ kbpB1JeFkRbWyWvJ75biyLjz6DJUkq5cRZx0QS38FyeSw8kehpRiY4AjSKOTMic4 IdFxo8RYKZQWybKweDCEMj5JhCgMjVCjYcwu2LqNkkY2vLozmuXp82YibC1LYRRd T0zFLC3FvmXqJ7LcOEEKhHHT =F5gv -----END PGP SIGNATURE----- --Qord1Me3iCI2CbfANjbmqjdCtJO2mQDE0--