Message ID | 1393499376-4374-9-git-send-email-wenchaoqemu@gmail.com |
---|---|
State | New |
Headers | show |
On 02/27/2014 04:09 AM, Wenchao Xia wrote: > From: Wenchao Xia <xiawenc@linux.vnet.ibm.com> > > After this patch, hidden enum type BlockdevOptionsKind will not > be generated, and other API can use enum BlockdevDriver. > > Signed-off-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com> > Signed-off-by: Wenchao Xia <wenchaoqemu@gmail.com> Double S-o-B. > --- > qapi-schema.json | 14 +++++++++++++- > 1 files changed, 13 insertions(+), 1 deletions(-) > > diff --git a/qapi-schema.json b/qapi-schema.json > index fcb2280..7f587b4 100644 > --- a/qapi-schema.json > +++ b/qapi-schema.json > @@ -4200,6 +4200,18 @@ > '*no-flush': 'bool' } } > > ## > +# @BlockdevDriver > +# > +# Drivers that are supported in block device operations. > +# > +# Since: 2.0 > +## > +{ 'enum': 'BlockdevDriver', > + 'data': [ 'file', 'http', 'https', 'ftp', 'ftps', 'tftp', 'vvfat', 'blkdebug', > + 'blkverify', 'bochs', 'cloop', 'cow', 'dmg', 'parallels', 'qcow', > + 'qcow2', 'qed', 'raw', 'vdi', 'vhdx', 'vmdk', 'vpc', 'quorum' ] } I see you've picked up 'quorum' since last time :) Reviewed-by: Eric Blake <eblake@redhat.com>
diff --git a/qapi-schema.json b/qapi-schema.json index fcb2280..7f587b4 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -4200,6 +4200,18 @@ '*no-flush': 'bool' } } ## +# @BlockdevDriver +# +# Drivers that are supported in block device operations. +# +# Since: 2.0 +## +{ 'enum': 'BlockdevDriver', + 'data': [ 'file', 'http', 'https', 'ftp', 'ftps', 'tftp', 'vvfat', 'blkdebug', + 'blkverify', 'bochs', 'cloop', 'cow', 'dmg', 'parallels', 'qcow', + 'qcow2', 'qed', 'raw', 'vdi', 'vhdx', 'vmdk', 'vpc', 'quorum' ] } + +## # @BlockdevOptionsBase # # Options that are available for all block devices, independent of the block @@ -4223,7 +4235,7 @@ # Since: 1.7 ## { 'type': 'BlockdevOptionsBase', - 'data': { 'driver': 'str', + 'data': { 'driver': 'BlockdevDriver', '*id': 'str', '*node-name': 'str', '*discard': 'BlockdevDiscardOptions',