From: Eric Blake <eblake@redhat.com>
To: Kevin Wolf <kwolf@redhat.com>,
Ashijeet Acharya <ashijeetacharya@gmail.com>
Cc: Peter Lieven <pl@kamp.de>, Stefan Hajnoczi <stefanha@gmail.com>,
qemu-block@nongnu.org, jcody@redhat.com,
QEMU Developers <qemu-devel@nongnu.org>,
Max Reitz <mreitz@redhat.com>
Subject: Re: [Qemu-devel] [Qemu-block] block/nfs: Fine grained runtime options in nfs
Date: Tue, 18 Oct 2016 08:49:53 -0500 [thread overview]
Message-ID: <8e833395-889b-3f89-abe5-8cfd5e90a155@redhat.com> (raw)
In-Reply-To: <20161018133345.GH4706@noname.str.redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1585 bytes --]
On 10/18/2016 08:33 AM, Kevin Wolf wrote:
>> I have successfully converted NFS block driver to use this set of
>> runtime opts which I think is the required condition to add
>> blockdev-add compatibility later. Also, since I do not have 'port' as
>> a runtime option, I can directly add blockdev-add compatibility after
>> this through qapi/block-core.json and will not have to go through the
>> tricky method we are implementing for NBD and SSH as there will be no
>> use of InetSocketAddress. Right?
>
> Yes, InetSocketAddress is what makes things a bit tricky, and it doesn't
> seem to be useful with the API we get from libnfs, so just directly
> taking a host name should be okay. Then this one should be easier than
> SSH.
>
> Eric, do you agree, or do you think we should take into account that
> libnfs might be extended one day to work on any socket?
Ideally, we want the valid JSON for ssh to be a subset of the valid JSON
for either InetSocketAddress, or for a flat counterpart (what we did for
gluster). I kind of like the flat counterpart idea. Yes, that probably
means we need to create a new QAPI type (comparable to the existing
types, but omitting port), rather than being able to reuse one; but as
long as the parameters are spelled the same, backwards-compatibility
states that we can later add fields, and that any two structs with
identical fields can be merged into one struct without breaking
backwards compatibility.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
next prev parent reply other threads:[~2016-10-18 13:50 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-10 5:09 [Qemu-devel] block/nfs: Fine grained runtime options in nfs Ashijeet Acharya
2016-10-14 15:46 ` [Qemu-devel] [Qemu-block] " Stefan Hajnoczi
2016-10-17 18:00 ` Ashijeet Acharya
2016-10-17 19:29 ` Eric Blake
2016-10-17 19:34 ` Ashijeet Acharya
2016-10-18 10:41 ` Peter Lieven
2016-10-18 12:46 ` Ashijeet Acharya
2016-10-18 13:04 ` Kevin Wolf
2016-10-18 13:14 ` Ashijeet Acharya
2016-10-18 13:33 ` Kevin Wolf
2016-10-18 13:49 ` Eric Blake [this message]
2016-10-18 16:13 ` Ashijeet Acharya
2016-10-18 16:18 ` Ashijeet Acharya
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=8e833395-889b-3f89-abe5-8cfd5e90a155@redhat.com \
--to=eblake@redhat.com \
--cc=ashijeetacharya@gmail.com \
--cc=jcody@redhat.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=pl@kamp.de \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).