From: Eric Blake <eblake@redhat.com>
To: Prasanna Kalever <pkalever@redhat.com>
Cc: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>,
qemu-devel@nongnu.org, Jeffrey Cody <jcody@redhat.com>,
Vijay Bellur <vbellur@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v1 1/1] qemu-doc: update gluster protocol usage guide
Date: Wed, 2 Nov 2016 10:32:48 -0500 [thread overview]
Message-ID: <a166dc6a-884f-93e4-39c5-230a7465c904@redhat.com> (raw)
In-Reply-To: <CANwsLLEfv2UAJ=gw+KEgB79UanqYOFM_N+w5s2hy8v9C1fHaUg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1794 bytes --]
On 11/02/2016 07:03 AM, Prasanna Kalever wrote:
>> "debug":"N" does not match the schema; the parameter is named
>> "debug-level", and it is an integer not a string. The parameter is
>> optional; you could just omit it. But if you are going to include it,
>> give a reasonable example like "debug-level":0.
>
> Eric,
>
>>From the code I can see
> #define GLUSTER_OPT_DEBUG "debug"
>
> And even tried this, there is no option 'debug-level'.
> And yes, I should admit it is 'int' not a 'string'
Uggh. We were under so much pressure to try and get GlusterServer into
2.7 that we really botched it.
The QMP definition is:
{ 'struct': 'BlockdevOptionsGluster',
'data': { 'volume': 'str',
'path': 'str',
'server': ['GlusterServer'],
'*debug-level': 'int',
'*logfile': 'str' } }
and what's more, we've copied that string elsewhere for 2.8:
{ 'struct': 'BlockdevOptionsNfs',
'data': { 'server': 'NFSServer',
'path': 'str',
'*user': 'int',
'*group': 'int',
'*tcp-syn-count': 'int',
'*readahead-size': 'int',
'*page-cache-size': 'int',
'*debug-level': 'int' } }
So either we need to fix the QMP to spell it 'debug' (to match the
documentation you gave); or fix the docs to match the QMP and add some
back-compat glue into the gluster code to manage both spellings rather
than just the QMP spelling.
Since blockdev-add is still experimental, I'm leaning towards changing
the QMP for both gluster and NFS. But we need to get it done before
2.8. Looks like I have some patches to propose.
--
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-11-02 15:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-01 12:29 [Qemu-devel] [PATCH v1 1/1] qemu-doc: update gluster protocol usage guide Prasanna Kumar Kalever
2016-11-01 18:02 ` Eric Blake
2016-11-02 12:03 ` Prasanna Kalever
2016-11-02 15:32 ` Eric Blake [this message]
2016-11-02 16:44 ` Prasanna Kalever
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=a166dc6a-884f-93e4-39c5-230a7465c904@redhat.com \
--to=eblake@redhat.com \
--cc=jcody@redhat.com \
--cc=pkalever@redhat.com \
--cc=prasanna.kalever@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=vbellur@redhat.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).