Skip to contentSkip to conversation

qapi/block-core: add doc describing GlusterServer vs. SocketAddress

PATCH Superseded Prasanna Kumar Kalever 2 participants 2 messages Aug 18, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qapi/block-core: add doc describing GlusterServer vs. SocketAddress

Added documentation describing relation between GlusterServer and SocketAddress qapi schemas.

Thanks to Markus Armbruster <[email protected]>

---
 qapi/block-core.json | 9 +++++++++
 1 file changed, 9 insertions(+)
qapi/block-core.json +9 -0
index 5e2d7d7..5305562 100644
@@ -2121,6 +2121,15 @@
 #
 # @tcp:        host address and port number
 #
+# GlusterServer vs. SocketAddress
+#
+# 1. GlusterServer is a flat union, SocketAddress is a simple union.
+#    A flat union is nicer over simple for the reason it avoids
+#    nesting (i.e. more {}) on the wire.
+#
+# 2. GlusterServer lacks case 'fd', since gluster doesn't let you
+#    pass in a file descriptor.
+#
 # Since: 2.7
 ##
 { 'union': 'GlusterServer',
Signature · 1 line
2.7.4
#1 lore raw
Quoted 15 lines · Prasanna Kumar Kalever

Added documentation describing relation between GlusterServer and SocketAddress qapi schemas.

Thanks to Markus Armbruster <[email protected]>

---
 qapi/block-core.json | 9 +++++++++
 1 file changed, 9 insertions(+)
qapi/block-core.json +0 -0
index 5e2d7d7..5305562 100644

qapi/block-core.json line 2124

Quoted 4 lines
qapi/block-core.json +1 -0
@@ -2121,6 +2121,15 @@
 #
 # @tcp:        host address and port number
 #
+# GlusterServer vs. SocketAddress

Suggest:

# This is similar to SocketAddress, only simpler:

qapi/block-core.json line 2128

Quoted 4 lines
qapi/block-core.json +4 -0
+#
+# 1. GlusterServer is a flat union, SocketAddress is a simple union.
+#    A flat union is nicer over simple for the reason it avoids
+#    nesting (i.e. more {}) on the wire.

Perhaps "nicer than simple because it"

qapi/block-core.json line 2132

Quoted 4 lines
qapi/block-core.json +4 -0
+#
+# 2. GlusterServer lacks case 'fd', since gluster doesn't let you
+#    pass in a file descriptor.
+#

Suggest:

# GlusterServer is actually not Gluster-specific, and could be

   # compatibily evolved into a replacement for SocketAddress.
Quoted 3 lines
qapi/block-core.json +0 -0
 # Since: 2.7
 ##
 { 'union': 'GlusterServer',