diff options
author | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2017-02-10 21:45:12 +0530 |
---|---|---|
committer | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2017-02-11 20:52:21 +0530 |
commit | a6dc593444353d758d0929f33b87fcdd17e89ae3 (patch) | |
tree | 1b631e10a09c864daac728b91065bbedd581936d /daemon/gluster-blockd.c | |
parent | 7f43f4fadecb9035888af5125afcb791bbf52872 (diff) |
cli: review fixes in gluster-block
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Reviewed-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Diffstat (limited to 'daemon/gluster-blockd.c')
-rw-r--r-- | daemon/gluster-blockd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/daemon/gluster-blockd.c b/daemon/gluster-blockd.c index f998d97..68d3995 100644 --- a/daemon/gluster-blockd.c +++ b/daemon/gluster-blockd.c @@ -9,10 +9,10 @@ */ -# include <unistd.h> # include <pthread.h> # include <rpc/pmap_clnt.h> +# include "common.h" # include "block.h" @@ -31,9 +31,9 @@ glusterBlockCliThreadProc (void *vargp) } saun.sun_family = AF_UNIX; - strcpy(saun.sun_path, ADDRESS); + strcpy(saun.sun_path, GB_UNIX_ADDRESS); - unlink(ADDRESS); + unlink(GB_UNIX_ADDRESS); len = sizeof(saun.sun_family) + strlen(saun.sun_path); if (bind(sockfd, (struct sockaddr *) &saun, len) < 0) { @@ -41,12 +41,12 @@ glusterBlockCliThreadProc (void *vargp) exit(1); } - transp = svcunix_create(sockfd, 0, 0, ADDRESS); + transp = svcunix_create(sockfd, 0, 0, GB_UNIX_ADDRESS); if (transp == NULL) { fprintf (stderr, "%s", "cannot create tcp service"); exit(1); } - + if (!svc_register(transp, GLUSTER_BLOCK_CLI, GLUSTER_BLOCK_CLI_VERS, gluster_block_cli_1, IPPROTO_IP)) { fprintf (stderr, "%s", "unable to register (GLUSTER_BLOCK_CLI, GLUSTER_BLOCK_CLI_VERS, unix|local)."); exit(1); |