summaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
Diffstat (limited to 'rpc')
-rw-r--r--rpc/block_svc_routines.c17
-rw-r--r--rpc/glfs-operations.c2
2 files changed, 15 insertions, 4 deletions
diff --git a/rpc/block_svc_routines.c b/rpc/block_svc_routines.c
index 149c7f6..78178d3 100644
--- a/rpc/block_svc_routines.c
+++ b/rpc/block_svc_routines.c
@@ -517,6 +517,7 @@ glusterBlockCallRPC_1(char *host, void *cobj,
case MODIFY_TPGC_SRV:
case LIST_SRV:
case INFO_SRV:
+ case REPLACE_GET_PORTAL_TPG_SRV:
goto out;
case REPLACE_SRV:
*rpc_sent = TRUE;
@@ -1457,6 +1458,12 @@ glusterBlockBuildMinCaps(void *data, operations opt)
minCaps[GB_JSON_CAP] = true;
}
break;
+ case MODIFY_TPGC_SRV:
+ case REPLACE_GET_PORTAL_TPG_SRV:
+ case LIST_SRV:
+ case INFO_SRV:
+ case VERSION_SRV:
+ break;
}
return minCaps;
@@ -2603,7 +2610,6 @@ block_modify_cli_1_svc_st(blockModifyCli *blk, struct svc_req *rqstp)
int errCode = 0;
char *errMsg = NULL;
blockServerDefPtr list = NULL;
- size_t i;
LOG("mgmt", GB_LOG_DEBUG,
@@ -2730,10 +2736,16 @@ block_modify_cli_1_svc_st(blockModifyCli *blk, struct svc_req *rqstp)
"for block %s on volume %s", blk->auth_mode, ret, FAILED_REMOTE_AYNC_MODIFY,
blk->block_name, info->volume);
/* do nothing ? */
+ errCode = ret;
+ goto out;
}
}
- ret = 0;
+ errCode = 0;
+
+ LOG("mgmt", GB_LOG_DEBUG,
+ "modify auth cli success, volume=%s blockname=%s auth=%d",
+ blk->volume, blk->block_name, blk->auth_mode);
out:
GB_METAUNLOCK(lkfd, blk->volume, ret, errMsg);
@@ -3717,7 +3729,6 @@ block_delete_1_svc_st(blockDelete *blk, struct svc_req *rqstp)
blockResponse *
block_version_1_svc_st(void *data, struct svc_req *rqstp)
{
- int ret = -1;
blockResponse *reply = NULL;
if (GB_ALLOC(reply) < 0) {
diff --git a/rpc/glfs-operations.c b/rpc/glfs-operations.c
index 341a6e2..600174a 100644
--- a/rpc/glfs-operations.c
+++ b/rpc/glfs-operations.c
@@ -145,7 +145,7 @@ glusterBlockCreateEntry(struct glfs *glfs, blockCreateCli *blk, char *gbid,
blk->storage, gbid, blk->volume, blk->block_name, strerror(errno));
GB_ASPRINTF(errMsg,
"glfs_link(%s, %s) on volume %s for block %s failed [%s]",
- blk->storage, gbid, strerror(errno));
+ blk->storage, gbid, blk->volume, blk->block_name, strerror(errno));
goto out;
}
} else {