"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "xlators/mgmt/glusterd/src/glusterd-svc-mgmt.c" between
glusterfs-9.2.tar.gz and glusterfs-9.3.tar.gz

About: GlusterFS is a network/cluster filesystem. The storage server (or each in a cluster) runs glusterfsd and the clients use mount command or glusterfs client to mount the exported filesystem. Release series 9.x (latest version).

glusterd-svc-mgmt.c  (glusterfs-9.2):glusterd-svc-mgmt.c  (glusterfs-9.3)
skipping to change at line 537 skipping to change at line 537
if (options) if (options)
dict_unref(options); dict_unref(options);
if (ret) { if (ret) {
if (rpc) { if (rpc) {
rpc_clnt_unref(rpc); rpc_clnt_unref(rpc);
rpc = NULL; rpc = NULL;
} }
} }
return ret; return ret;
} }
/*
* A generic function replacing two functions,
* glusterd_bitdsvc_start and glusterd_scrubsvc_start
* wherein both do the same set of operations.
*/
int
glusterd_genericsvc_start(glusterd_svc_t *svc, int flags)
{
int i = 0;
int ret = -1;
dict_t *cmdline = NULL;
char key[16] = {0};
char *options[] = {svc->name, "--process-name", NULL};
cmdline = dict_new();
if (!cmdline) {
gf_smsg(THIS->name, GF_LOG_ERROR, errno, GD_MSG_DICT_CREATE_FAIL, NULL);
return ret;
}
for (i = 0; options[i]; i++) {
ret = snprintf(key, sizeof(key), "arg%d", i);
ret = dict_set_strn(cmdline, key, ret, options[i]);
if (ret)
goto out;
}
ret = dict_set_str(cmdline, "cmdarg0", "--global-timer-wheel");
if (ret)
goto out;
ret = glusterd_svc_start(svc, flags, cmdline);
out:
dict_unref(cmdline);
return ret;
}
 End of changes. 1 change blocks. 
0 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)