diff options
Diffstat (limited to 'gluster-blockd.c')
| -rw-r--r-- | gluster-blockd.c | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/gluster-blockd.c b/gluster-blockd.c index 8807b19..48786ca 100644 --- a/gluster-blockd.c +++ b/gluster-blockd.c @@ -469,15 +469,34 @@ block_exec_1_svc(char **cmd, struct svc_req *rqstp) blockResponse * block_list_cli_1_svc(blockListCli *blk, struct svc_req *rqstp) { + char *cmd; + blockResponse *reply; + asprintf(&cmd, "%s %s", TARGETCLI_GLFS, LUNS_LIST); - return NULL; + gluster_block_1(blk->block_hosts, cmd, EXEC_SRV, &reply); + if (!reply || reply->exit) { + ERROR("%s on host: %s", + FAILED_GATHERING_CFGSTR, blk->block_hosts); + } + + return reply; } blockResponse * block_info_cli_1_svc(blockInfoCli *blk, struct svc_req *rqstp) { + char *cmd; + blockResponse *reply; + asprintf(&cmd, "%s/%s %s", TARGETCLI_GLFS, blk->block_name, INFO); - return NULL; + //for + gluster_block_1(blk->block_hosts, cmd, EXEC_SRV, &reply); + if (!reply || reply->exit) { + ERROR("%s on host: %s", + FAILED_GATHERING_CFGSTR, blk->block_hosts); + } + + return reply; } |
