"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cli/src/cli-rpc-ops.c" between
glusterfs-8.4.tar.gz and glusterfs-8.5.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 8.x.

cli-rpc-ops.c  (glusterfs-8.4):cli-rpc-ops.c  (glusterfs-8.5)
skipping to change at line 10403 skipping to change at line 10403
"Failed to retrieve count from the dictionary"); "Failed to retrieve count from the dictionary");
goto out; goto out;
} }
if (count <= 0) { if (count <= 0) {
gf_log("cli", GF_LOG_ERROR, "Value of count :%d is invalid", count); gf_log("cli", GF_LOG_ERROR, "Value of count :%d is invalid", count);
ret = -1; ret = -1;
goto out; goto out;
} }
cli_out("%-40s%-40s", "Option", "Value"); cli_out("%-40s %-39s", "Option", "Value");
cli_out("%-40s%-40s", "------", "-----"); cli_out("%-40s %-39s", "------", "-----");
for (i = 1; i <= count; i++) { for (i = 1; i <= count; i++) {
ret = snprintf(dict_key, sizeof dict_key, "key%d", i); ret = snprintf(dict_key, sizeof dict_key, "key%d", i);
ret = dict_get_strn(dict, dict_key, ret, &key); ret = dict_get_strn(dict, dict_key, ret, &key);
if (ret) { if (ret) {
gf_log("cli", GF_LOG_ERROR, gf_log("cli", GF_LOG_ERROR,
"Failed to retrieve %s from the dictionary", dict_key); "Failed to retrieve %s from the dictionary", dict_key);
goto out; goto out;
} }
ret = snprintf(dict_key, sizeof dict_key, "value%d", i); ret = snprintf(dict_key, sizeof dict_key, "value%d", i);
ret = dict_get_strn(dict, dict_key, ret, &value); ret = dict_get_strn(dict, dict_key, ret, &value);
if (ret) { if (ret) {
gf_log("cli", GF_LOG_ERROR, gf_log("cli", GF_LOG_ERROR,
"Failed to retrieve key value for %s from the dictionary", "Failed to retrieve key value for %s from the dictionary",
dict_key); dict_key);
goto out; goto out;
} }
cli_out("%-40s%-40s", key, value); cli_out("%-40s %-39s", key, value);
} }
out: out:
if (ret) { if (ret) {
cli_out( cli_out(
"volume get option failed. Check the cli/glusterd log " "volume get option failed. Check the cli/glusterd log "
"file for more details"); "file for more details");
} }
out_nolog: out_nolog:
 End of changes. 2 change blocks. 
3 lines changed or deleted 3 lines changed or added

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