summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-op-sm.c
diff options
context:
space:
mode:
authorKaushal M <kaushal@redhat.com>2012-04-02 13:00:47 +0530
committerVijay Bellur <vijay@gluster.com>2012-04-02 02:41:18 -0700
commite51f690d7c5eda400316ba97ab2f4ce448b51e7d (patch)
treed02b569563fb8a171b621f8c7a9e0eccc5e67557 /xlators/mgmt/glusterd/src/glusterd-op-sm.c
parent0f3b55be4376c1c59131d999469d3b3c6aaddd87 (diff)
glusterd: Include port in nfs status
Change-Id: I679e491e801b694e8a0f93dd87cf540441dae927 BUG: 806877 Signed-off-by: Kaushal M <kaushal@redhat.com> Reviewed-on: http://review.gluster.com/3060 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-op-sm.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-op-sm.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
index d548b95a8b6..80553b4376d 100644
--- a/xlators/mgmt/glusterd/src/glusterd-op-sm.c
+++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
@@ -1450,14 +1450,15 @@ glusterd_op_status_volume (dict_t *dict, char **op_errstr,
vol_opts = volinfo->dict;
if ((cmd & GF_CLI_STATUS_NFS) != 0) {
- ret = glusterd_add_node_to_dict ("nfs", rsp_dict, 0);
+ ret = glusterd_add_node_to_dict ("nfs", rsp_dict, 0, vol_opts);
if (ret)
goto out;
other_count++;
node_count++;
} else if ((cmd & GF_CLI_STATUS_SHD) != 0) {
- ret = glusterd_add_node_to_dict ("glustershd", rsp_dict, 0);
+ ret = glusterd_add_node_to_dict ("glustershd", rsp_dict, 0,
+ vol_opts);
if (ret)
goto out;
other_count++;
@@ -1513,7 +1514,8 @@ glusterd_op_status_volume (dict_t *dict, char **op_errstr,
if (!nfs_disabled) {
ret = glusterd_add_node_to_dict ("nfs",
rsp_dict,
- other_index);
+ other_index,
+ vol_opts);
if (ret)
goto out;
other_index++;
@@ -1528,7 +1530,8 @@ glusterd_op_status_volume (dict_t *dict, char **op_errstr,
&& shd_enabled) {
ret = glusterd_add_node_to_dict ("glustershd",
rsp_dict,
- other_index);
+ other_index,
+ vol_opts);
if (ret)
goto out;
other_count++;