[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [v2 5/5] qapi: allow blockdev-add for ssh
From: |
Ashijeet Acharya |
Subject: |
[Qemu-devel] [v2 5/5] qapi: allow blockdev-add for ssh |
Date: |
Sat, 15 Oct 2016 14:34:40 +0530 |
Introduce new object 'BlockdevOptionsSsh' in qapi/block-core.json to
support blockdev-add for SSH network protocol driver. Use only 'struct
InetSocketAddress' since SSH only supports connection over TCP.
Signed-off-by: Ashijeet Acharya <address@hidden>
---
qapi/block-core.json | 24 ++++++++++++++++++++++--
1 file changed, 22 insertions(+), 2 deletions(-)
diff --git a/qapi/block-core.json b/qapi/block-core.json
index 9d797b8..2e8a390 100644
--- a/qapi/block-core.json
+++ b/qapi/block-core.json
@@ -1716,7 +1716,8 @@
'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' ] }
+ 'replication', 'ssh', 'tftp', 'vdi', 'vhdx', 'vmdk', 'vpc',
+ 'vvfat' ] }
##
# @BlockdevOptionsFile
@@ -1953,6 +1954,25 @@
'*vport': 'int',
'*segment': 'str' } }
+##
+# @BlockdevoptionsSsh
+#
+# @server: host address and port number
+#
+# @path: path to the image on the host
+#
+# @user: user as which to connect
+#
+# @host_key_check defines how and what to check the host key against
+#
+# Since 2.8
+##
+{ 'struct': 'BlockdevoptionsSsh',
+ 'data': { 'server': 'InetSocketAddress',
+ 'path': 'str',
+ 'user': 'str',
+ '*host_key_check': 'str' } }
+
##
# @BlkdebugEvent
@@ -2281,7 +2301,7 @@
# TODO rbd: Wait for structured options
'replication':'BlockdevOptionsReplication',
# TODO sheepdog: Wait for structured options
-# TODO ssh: Should take InetSocketAddress for 'host'?
+ 'ssh': 'BlockdevoptionsSsh',
'tftp': 'BlockdevOptionsCurl',
'vdi': 'BlockdevOptionsGenericFormat',
'vhdx': 'BlockdevOptionsGenericFormat',
--
2.6.2
[Qemu-devel] [v2 3/5] block/ssh: Use inet_connect_saddr() to establish socket connection, Ashijeet Acharya, 2016/10/15
[Qemu-devel] [v2 4/5] block/ssh: Use InetSocketAddress options, Ashijeet Acharya, 2016/10/15
[Qemu-devel] [v2 5/5] qapi: allow blockdev-add for ssh,
Ashijeet Acharya <=
Re: [Qemu-devel] [v2 0/5] Allow blockdev-add for SSH, no-reply, 2016/10/15
Re: [Qemu-devel] [v2 0/5] Allow blockdev-add for SSH, Kevin Wolf, 2016/10/17