Skip to contentSkip to conversation

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

PATCH Applied Prasanna Kumar Kalever 3 participants 3 messages Aug 20, 2016 – Sep 13, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v2 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]>

---
v2: apply suggestions from Markus on v1
v1: initial doc changes

---
 qapi/block-core.json | 12 ++++++++++++
 1 file changed, 12 insertions(+)
qapi/block-core.json +12 -0
index 5e2d7d7..4bd513f 100644
@@ -2121,6 +2121,18 @@
 #
 # @tcp:        host address and port number
 #
+# This is similar to SocketAddress, only distinction:
+#
+# 1. GlusterServer is a flat union, SocketAddress is a simple union.
+#    A flat union is nicer than simple because 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.
+#
+# GlusterServer is actually not Gluster-specific, its a
+# compatibility evolved into an alternate for SocketAddress.
+#
 # Since: 2.7
 ##
 { 'union': 'GlusterServer',
Signature · 1 line
2.7.4
Applied
#2 lore raw
In reply to Prasanna Kumar Kalever
Quoted 39 lines · Prasanna Kumar Kalever

Added documentation describing relation between GlusterServer and SocketAddress qapi schemas.

Thanks to Markus Armbruster <[email protected]>

---
v2: apply suggestions from Markus on v1
v1: initial doc changes

---
 qapi/block-core.json | 12 ++++++++++++
 1 file changed, 12 insertions(+)
qapi/block-core.json +12 -0
index 5e2d7d7..4bd513f 100644
@@ -2121,6 +2121,18 @@
 #
 # @tcp:        host address and port number
 #
+# This is similar to SocketAddress, only distinction:
+#
+# 1. GlusterServer is a flat union, SocketAddress is a simple union.
+#    A flat union is nicer than simple because 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.
+#
+# GlusterServer is actually not Gluster-specific, its a
+# compatibility evolved into an alternate for SocketAddress.
+#
 # Since: 2.7
 ##
 { 'union': 'GlusterServer',
Signature · 1 line
2.7.4

Thanks,

Applied to my block branch:

git://github.com/codyprime/qemu-kvm-jtc.git block

-Jeff