From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43713) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzno2-0007l7-0a for qemu-devel@nongnu.org; Thu, 27 Oct 2016 12:45:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bzno1-0007CM-3e for qemu-devel@nongnu.org; Thu, 27 Oct 2016 12:45:30 -0400 Date: Thu, 27 Oct 2016 18:45:21 +0200 From: Kevin Wolf Message-ID: <20161027164521.GM4027@noname.redhat.com> References: <1477565022-11377-1-git-send-email-ashijeetacharya@gmail.com> <1477565022-11377-3-git-send-email-ashijeetacharya@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1477565022-11377-3-git-send-email-ashijeetacharya@gmail.com> Subject: Re: [Qemu-devel] [PATCH v3 2/2] qapi: allow blockdev-add for NFS List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ashijeet Acharya Cc: eblake@redhat.com, pl@kamp.de, jcody@redhat.com, mreitz@redhat.com, armbru@redhat.com, qemu-devel@nongnu.org, qemu-block@nongnu.org Am 27.10.2016 um 12:43 hat Ashijeet Acharya geschrieben: > Introduce new object 'BlockdevOptionsNFS' in qapi/block-core.json to > support blockdev-add for NFS network protocol driver. Also make a new > struct NFSServer to support tcp connection. > > Signed-off-by: Ashijeet Acharya > --- > qapi/block-core.json | 77 +++++++++++++++++++++++++++++++++++++++++++++++++--- > 1 file changed, 73 insertions(+), 4 deletions(-) > > diff --git a/qapi/block-core.json b/qapi/block-core.json > index 9d797b8..75e28aa 100644 > --- a/qapi/block-core.json > +++ b/qapi/block-core.json > @@ -1708,15 +1708,16 @@ > # > # @host_device, @host_cdrom: Since 2.1 > # @gluster: Since 2.7 > +# @nfs: Since 2.8 > # > # Since: 2.0 > ## > { 'enum': 'BlockdevDriver', > 'data': [ 'archipelago', 'blkdebug', 'blkverify', 'bochs', 'cloop', > 'dmg', 'file', 'ftp', 'ftps', 'gluster', 'host_cdrom', > - 'host_device', 'http', 'https', 'luks', 'null-aio', 'null-co', > - 'parallels', 'qcow', 'qcow2', 'qed', 'quorum', 'raw', > - 'replication', 'tftp', 'vdi', 'vhdx', 'vmdk', 'vpc', 'vvfat' ] } > + 'host_device', 'http', 'https', 'luks', 'nfs', 'null-aio', > + 'null-co', 'parallels', 'qcow', 'qcow2', 'qed', 'quorum', 'raw', > + 'replication', 'tftp', 'vdi', 'vhdx', 'vmdk', 'vpc', 'vvfat' ] } > > ## > # @BlockdevOptionsFile > @@ -2212,6 +2213,74 @@ > '*top-id': 'str' } } > > ## > +# @NFSTransport > +# > +# An enumeration of NFS transport types > +# > +# @inet: host address for NFS server This description belongs to the 'host' field in NFSServer. Here it should probably say something like "TCP transport". > +# Since 2.8 > +## > +{ 'enum': 'NFSTransport', > + 'data': [ 'inet' ] } > + > +## > +# @NFSServer > +# > +# Captures the address of the socket > +# > +# @type: transport type used for NFS (only TCP supported) > +# > +# @inet: host address for NFS server Here the description is right, but the field name is wrong (should be @host instead of @inet). > +# Since 2.8 > +## > +{ 'struct': 'NFSServer', > + 'data': { 'type': 'NFSTransport', > + 'host': 'str' } } > + Kevin