summaryrefslogtreecommitdiffstats
path: root/rpc/block_xdr.c
diff options
context:
space:
mode:
authorPrasanna Kumar Kalever <prasanna.kalever@redhat.com>2017-01-27 23:28:59 +0530
committerPrasanna Kumar Kalever <prasanna.kalever@redhat.com>2017-01-30 19:31:50 +0530
commitf25b4e7326838c73d0a7a71bd64c8658e44f4219 (patch)
tree0be4325936644bfc7be6cec74761fc4beb305642 /rpc/block_xdr.c
parentaa861a01de2f89aec61dddeba13b929222143a52 (diff)
gluster-blockd: consider spare nodes to satisfy the multipath request
In case if number of block hosts are more than the multipath request, consider that spare nodes to satify the request. Lets say we need multipath of 3, but the admin provides 5 block-hosts. If any of the node fail to configure target from first three, then consider configuring fourth node to satify the HA request. Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Diffstat (limited to 'rpc/block_xdr.c')
-rw-r--r--rpc/block_xdr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/rpc/block_xdr.c b/rpc/block_xdr.c
index 3bc0afc..8d05f3a 100644
--- a/rpc/block_xdr.c
+++ b/rpc/block_xdr.c
@@ -36,6 +36,8 @@ xdr_blockCreateCli (XDR *xdrs, blockCreateCli *objp)
return FALSE;
if (!xdr_u_quad_t (xdrs, &objp->size))
return FALSE;
+ if (!xdr_u_int (xdrs, &objp->mpath))
+ return FALSE;
if (!xdr_vector (xdrs, (char *)objp->block_name, 255,
sizeof (char), (xdrproc_t) xdr_char))
return FALSE;