Received: from eggs.gnu.org ([2001:4830:134:3::10]:36577) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzJcH-0007M5-V3 for qemu-devel@nongnu.org; Wed, 26 Oct 2016 04:31:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bzJcH-0000Lc-62 for qemu-devel@nongnu.org; Wed, 26 Oct 2016 04:31:22 -0400 Date: Wed, 26 Oct 2016 10:31:13 +0200 From: Kevin Wolf Message-ID: <20161026083113.GE4758@noname.str.redhat.com> References: <1477400641-7750-1-git-send-email-ashijeetacharya@gmail.com> <1477400641-7750-6-git-send-email-ashijeetacharya@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="b5gNqxB1S1yM7hjW" Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH v4 5/5] qapi: allow blockdev-add for ssh List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: Ashijeet Acharya , rjones@redhat.com, jcody@redhat.com, mreitz@redhat.com, berrange@redhat.com, pbonzini@redhat.com, qemu-devel@nongnu.org, qemu-block@nongnu.org --b5gNqxB1S1yM7hjW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Am 25.10.2016 um 21:58 hat Eric Blake geschrieben: > On 10/25/2016 08:04 AM, Ashijeet Acharya wrote: > > Introduce new object 'BlockdevOptionsSsh' in qapi/block-core.json to > > support blockdev-add for SSH network protocol driver. Use only 'struct > > InetSocketAddress' since SSH only supports connection over TCP. > >=20 > > Signed-off-by: Ashijeet Acharya > > Reviewed-by: Kevin Wolf > > --- > > qapi/block-core.json | 26 ++++++++++++++++++++++++-- > > 1 file changed, 24 insertions(+), 2 deletions(-) >=20 > Sorry for not noticing this when I finally replied to v4; >=20 > > +## > > +# @BlockdevOptionsSsh > > +# > > +# @server: host address > > +# > > +# @path: path to the image on the host > > +# > > +# @user: #optional user as which to connect, defaults t= o current > > +# local user name > > +# > > +# @host_key_check #optional defines how and what to check the ho= st > > +# key against, defaults to "yes" >=20 > I still have reservations about this parameter. It doesn't seem to be as easy as an enum. The real thing is structured because some we support colon-separated mode/key, like this: host_key_check=3Dmd5:xx:yy:zz:... The description for the real thing (to which we would have to translate the existing string) seems to be something like this: { 'enum': 'HostKeyCheckMode', 'data': [ 'yes', 'no', 'md5', 'sha1' ] } { 'union': 'HostKeyCheck', 'base': { 'mode': 'HostKeyCheckMode', }, 'discriminator': 'mode', 'data': { 'yes': {}, 'no': {}, 'md5': { 'key': 'str' }, 'sha1': { 'key': 'str' } } (Hm, are inline struct definitions even allowed for union branches, or do we have to create a named type there?) > I think we have time to fix it as followups during soft freeze if > Kevin would rather get your initial patches in now, if that's what it > takes to meet soft freeze deadlines, but I do not want to bake it into > the actual 2.8 release without addressing those concerns. We don't really have a soft freeze like before any more, we're rather going into something that is still called soft freeze, but is really a hard freeze in disguise. So I'm not sure if we can change this during the freeze. If we can't work it out this week, I'd drop host_key_check from the schema and leave a TODO comment instead so that it could be added in the 2.9 timeframe. Kevin --b5gNqxB1S1yM7hjW Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJYEGnRAAoJEH8JsnLIjy/W+bUQAIrYt//h+KSp5Kt8qEtcwrf1 k6WyUzhXV/BbKMKhz/vU7CXCAyHGJeEyrT/ngXvDrHnGHxGuM0/jddVPugRzdFOJ cIvA0RuquazpSvpA5NoWpJ7+QWBdydnteyap9mU/vDKhQPUI0XMMt8/qEX+xA8Ej 832YwMBru5ak7Qjc+Yne9ja/eJfBuN4L97WfNKYsBpe2oCkk2rVXS4QQXn0yqp9O l1Ff2bmE3OdKTVtkjjPONcHnd1tInWtcR0hPSseI2V+dS0P6OGgg7g9GJG2s4lQT 9C2qme4JRljZT3cwRsU+Rp0p8NY2PV0XoMtONGGrXzmuKJcS5vDV5LnT7v7xh6x2 k1pycoymrYOu5g/hXJtEb+ApCgRIUyy1kQJVP77wsY8oQQKgk5tfZ2S0/KExUlIv rorhdN3tuTAa2RuC4ssmf1oehKMhJjI7J4/Am1MlUd7EhIXLV5DlmCMA3XnmWA9r 6MRoRAyec5Q06j4661q0S8x/F4ayH1UtQ+kElMuN+eaVQwiVdlNMo1yx7i2oAaej 8GTl800mb8LmCTE2TNlhncgLaCb86GtDAs+RgZLRI+/Oa7voJCvggfHsvhnbc3zJ rDkK8l/Xrc6dHmObkiWGvi4v64qPSdwtMm4D2XrtkMy3VvyS8LQS9UuCzjAI1SSn 0GTsmBB0E6SCQtZVArHq =oX93 -----END PGP SIGNATURE----- --b5gNqxB1S1yM7hjW--