path: root/cli
diff options
authorGaurav Kumar Garg <>2015-10-13 14:40:55 +0530
committerNiels de Vos <>2016-03-23 13:41:28 -0700
commit12861b75dcc2319067cabc903e688b4ceb4763fe (patch)
treea2bc27425c28820af56f3781e65371674ead29af /cli
parent8f5323882d90e3dd4ab855c79737e6d2302fc739 (diff)
libglusterfs: pass buffer size to gf_store_read_and_tokenize function
This patch is backport of: Previously if user set an option where length of key=value goes beyond PATH_MAX (4096) character then tokenzing the option at the time of reading configuration file will fail. This is because of the we was having restraction in fgets to read maximum of PATH_MAX (4096) length of character. Consequence of this is when user try to restart glusterd, after setting key=value length beyond PATH_MAX (4096) character, glusterd will not restart. With this fix instead of PATH_MAX, consumer of gf_store_read_and_tokenize function will decide the size of the buffer length. Cherry picked from commit 816ca94f5dd49f34f395caf501de3c71f0ba113d: >> Change-Id: I655a8ce982effdfff8f3e785ea31f543dbe39301 >> BUG: 1271150 >> Signed-off-by: Gaurav Kumar Garg <> >> Reviewed-on: >> Tested-by: NetBSD Build System <> >> Tested-by: Gluster Build System <> >> Reviewed-by: Anand Nekkunti <> >> Reviewed-by: Niels de Vos <> Change-Id: I5b76e81a4ad31a286fb4298ba27f3230fba99ab4 BUG: 1319649 Signed-off-by: Gaurav Kumar Garg <> Reviewed-on: NetBSD-regression: NetBSD Build System <> CentOS-regression: Gluster Build System <> Reviewed-by: Niels de Vos <> Smoke: Gluster Build System <>
Diffstat (limited to 'cli')
0 files changed, 0 insertions, 0 deletions