Received: from eggs.gnu.org ([2001:4830:134:3::10]:40514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1xX3-000244-KV for qemu-devel@nongnu.org; Wed, 02 Nov 2016 11:32:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c1xX0-0000as-IT for qemu-devel@nongnu.org; Wed, 02 Nov 2016 11:32:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42118) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c1xX0-0000ai-Aa for qemu-devel@nongnu.org; Wed, 02 Nov 2016 11:32:50 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 949C07F7D5 for ; Wed, 2 Nov 2016 15:32:49 +0000 (UTC) References: <1478003344-3208-1-git-send-email-prasanna.kalever@redhat.com> From: Eric Blake Message-ID: Date: Wed, 2 Nov 2016 10:32:48 -0500 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="9jt9LKlSEpqWAglnNWvf3uWpt4xnGFtrB" Subject: Re: [Qemu-devel] [PATCH v1 1/1] qemu-doc: update gluster protocol usage guide List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Prasanna Kalever Cc: Prasanna Kumar Kalever , qemu-devel@nongnu.org, Jeffrey Cody , Vijay Bellur This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --9jt9LKlSEpqWAglnNWvf3uWpt4xnGFtrB From: Eric Blake To: Prasanna Kalever Cc: Prasanna Kumar Kalever , qemu-devel@nongnu.org, Jeffrey Cody , Vijay Bellur Message-ID: Subject: Re: [Qemu-devel] [PATCH v1 1/1] qemu-doc: update gluster protocol usage guide References: <1478003344-3208-1-git-send-email-prasanna.kalever@redhat.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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. >=20 > Eric, >=20 >>From the code I can see > #define GLUSTER_OPT_DEBUG "debug" >=20 > 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. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --9jt9LKlSEpqWAglnNWvf3uWpt4xnGFtrB 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 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJYGgcgAAoJEKeha0olJ0Nq2xkH/jwzckeO5psDQgDo8wz9cMFJ nRZ5xSADMkLLJKTFGYsZbfO+2nlawb5I79UDpx5q8+up4LMqPX8RH4d6UDVcI6FT iJYY+UqQ6yMaMAACxwAyc5xGPL4mAvRO8S89nmzjqjtq5+zJH5Fy+SWfKypAb2k9 93kS24KJGwK1Ig/oiY7XxGybyDXdOtph0PbTO4Y7MIn6GHKEE8O7OZmzFiKEqCxX nM/wR3cl1LEu0bYbBjNjLQWunQFDTeV27X+cosu3vwtbY0fxlGTPKoPvQmzHZ3vW e+mt0OBY9mvYaTinNDFf/tVpZqohVHxE8mpUr4h4eFpAVeGZ5Od0cNhV3v21P4Q= =sO3o -----END PGP SIGNATURE----- --9jt9LKlSEpqWAglnNWvf3uWpt4xnGFtrB--