"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cli/src/cli-cmd-parser.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-cmd-parser.c  (glusterfs-8.4):cli-cmd-parser.c  (glusterfs-8.5)
skipping to change at line 660 skipping to change at line 660
"replica count should be greater" "replica count should be greater"
" than 1"); " than 1");
ret = -1; ret = -1;
goto out; goto out;
} }
index += 2; index += 2;
if (words[index]) { if (words[index]) {
if (!strcmp(words[index], "arbiter")) { if (!strcmp(words[index], "arbiter")) {
ret = gf_string2int(words[index + 1], &arbiter_count); ret = gf_string2int(words[index + 1], &arbiter_count);
if ((ret == -1) || (arbiter_count != 1)) { if ((ret == -1) || (arbiter_count != 1) ||
((replica_count < 2) || (replica_count > 3))) {
cli_err( cli_err(
"For arbiter " "For arbiter "
"configuration, " "configuration, "
"replica count must be" "replica count must be"
" 2 and arbiter count " " 2 and arbiter count "
"must be 1. The 3rd " "must be 1. The 3rd "
"brick of the replica " "brick of the replica "
"will be the arbiter"); "will be the arbiter");
ret = -1; ret = -1;
goto out; goto out;
 End of changes. 1 change blocks. 
1 lines changed or deleted 2 lines changed or added

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