[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 06/18] block/qapi: Use separate options type for curl
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] [PULL 06/18] block/qapi: Use separate options type for curl driver |
Date: |
Tue, 27 Sep 2016 15:53:49 +0200 |
We're going to add an option to the file drivers which doesn't apply to
the curl drivers, so give them a separate option type.
Signed-off-by: Kevin Wolf <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Reviewed-by: Max Reitz <address@hidden>
---
qapi/block-core.json | 25 ++++++++++++++++++-------
1 file changed, 18 insertions(+), 7 deletions(-)
diff --git a/qapi/block-core.json b/qapi/block-core.json
index 92193ab..b5fdd42 100644
--- a/qapi/block-core.json
+++ b/qapi/block-core.json
@@ -1721,8 +1721,7 @@
##
# @BlockdevOptionsFile
#
-# Driver specific block device options for the file backend and similar
-# protocols.
+# Driver specific block device options for the file backend.
#
# @filename: path to the image file
#
@@ -2211,6 +2210,18 @@
'*top-id': 'str' } }
##
+# @BlockdevOptionsCurl
+#
+# Driver specific block device options for the curl backend.
+#
+# @filename: path to the image file
+#
+# Since: 1.7
+##
+{ 'struct': 'BlockdevOptionsCurl',
+ 'data': { 'filename': 'str' } }
+
+##
# @BlockdevOptions
#
# Options for creating a block device. Many options are available for all
@@ -2248,13 +2259,13 @@
'cloop': 'BlockdevOptionsGenericFormat',
'dmg': 'BlockdevOptionsGenericFormat',
'file': 'BlockdevOptionsFile',
- 'ftp': 'BlockdevOptionsFile',
- 'ftps': 'BlockdevOptionsFile',
+ 'ftp': 'BlockdevOptionsCurl',
+ 'ftps': 'BlockdevOptionsCurl',
'gluster': 'BlockdevOptionsGluster',
'host_cdrom': 'BlockdevOptionsFile',
'host_device':'BlockdevOptionsFile',
- 'http': 'BlockdevOptionsFile',
- 'https': 'BlockdevOptionsFile',
+ 'http': 'BlockdevOptionsCurl',
+ 'https': 'BlockdevOptionsCurl',
# TODO iscsi: Wait for structured options
'luks': 'BlockdevOptionsLUKS',
# TODO nbd: Should take InetSocketAddress for 'host'?
@@ -2271,7 +2282,7 @@
'replication':'BlockdevOptionsReplication',
# TODO sheepdog: Wait for structured options
# TODO ssh: Should take InetSocketAddress for 'host'?
- 'tftp': 'BlockdevOptionsFile',
+ 'tftp': 'BlockdevOptionsCurl',
'vdi': 'BlockdevOptionsGenericFormat',
'vhdx': 'BlockdevOptionsGenericFormat',
'vmdk': 'BlockdevOptionsGenericCOWFormat',
--
1.8.3.1
- [Qemu-devel] [PULL 17/18] commit: get the overlay node before manipulating the backing chain, (continued)
- [Qemu-devel] [PULL 17/18] commit: get the overlay node before manipulating the backing chain, Max Reitz, 2016/09/14
- [Qemu-devel] [PULL 18/18] iotest 055: refactor and speed up, Max Reitz, 2016/09/14
- Re: [Qemu-devel] [PULL 00/18] Block layer patches, no-reply, 2016/09/14
- Re: [Qemu-devel] [PULL 00/18] Block layer patches, Peter Maydell, 2016/09/15
- [Qemu-devel] [PULL 00/18] Block layer patches, Kevin Wolf, 2016/09/27
- [Qemu-devel] [PULL 05/18] block: Drop aio/cache consistency check from qmp_blockdev_add(), Kevin Wolf, 2016/09/27
- [Qemu-devel] [PULL 02/18] qemu: use bdrv_flush_all for vm_stop et al, Kevin Wolf, 2016/09/27
- [Qemu-devel] [PULL 01/18] block: reintroduce bdrv_flush_all, Kevin Wolf, 2016/09/27
- [Qemu-devel] [PULL 03/18] block-backend: remove blk_flush_all, Kevin Wolf, 2016/09/27
- [Qemu-devel] [PULL 06/18] block/qapi: Use separate options type for curl driver,
Kevin Wolf <=
- [Qemu-devel] [PULL 08/18] block: Parse 'detect-zeroes' in bdrv_open_common(), Kevin Wolf, 2016/09/27
- [Qemu-devel] [PULL 04/18] block: Fix error path in qmp_blockdev_change_medium(), Kevin Wolf, 2016/09/27
- [Qemu-devel] [PULL 11/18] block: Remove qemu_root_bds_opts, Kevin Wolf, 2016/09/27
- [Qemu-devel] [PULL 09/18] block: Use 'detect-zeroes' option for 'blockdev-change-medium', Kevin Wolf, 2016/09/27
- [Qemu-devel] [PULL 16/18] coroutine-sigaltstack: use helper for allocating stack memory, Kevin Wolf, 2016/09/27
- [Qemu-devel] [PULL 10/18] block: Move 'discard' option to bdrv_open_common(), Kevin Wolf, 2016/09/27
- [Qemu-devel] [PULL 18/18] coroutine: reduce stack size to 60kB, Kevin Wolf, 2016/09/27
- [Qemu-devel] [PULL 07/18] block/qapi: Move 'aio' option to file driver, Kevin Wolf, 2016/09/27
- [Qemu-devel] [PULL 12/18] oslib-posix: add helpers for stack alloc and free, Kevin Wolf, 2016/09/27
- [Qemu-devel] [PULL 15/18] coroutine-ucontext: use helper for allocating stack memory, Kevin Wolf, 2016/09/27