path: root/libglusterfs/src/common-utils.h
diff options
authorKrutika Dhananjay <>2012-12-27 15:57:13 +0530
committerAnand Avati <>2013-02-08 19:13:36 -0800
commit7c0d35b2e7e234084d0414b3cf1e09969a43a677 (patch)
tree013d853e2139ed43875123ddec3eef4bc97e6d14 /libglusterfs/src/common-utils.h
parent19de18219b93097ede8d14c218011a873ebd50ed (diff)
glusterd: harden 'volume start' staging to check for brick dirs' presence
PROBLEM: When the brick directory of a volume is absent on any of the servers, AND an attempt is made to start the volume, commit fails ONLY on the node where the brick dir is absent, leading to a split-brain like situation. FIX: Harden 'volume start' to check for the presence of brick directories at the time of staging, thereby preventing commit failure. Change-Id: I67faeb9afbd3aa76f08645924462db126bf7a977 BUG: 889996 Signed-off-by: Krutika Dhananjay <> Reviewed-on: Tested-by: Gluster Build System <> Reviewed-by: Anand Avati <>
Diffstat (limited to 'libglusterfs/src/common-utils.h')
1 files changed, 3 insertions, 0 deletions
diff --git a/libglusterfs/src/common-utils.h b/libglusterfs/src/common-utils.h
index bbafd1fb0..d04df579b 100644
--- a/libglusterfs/src/common-utils.h
+++ b/libglusterfs/src/common-utils.h
@@ -483,6 +483,9 @@ mkdir_p (char *path, mode_t mode, gf_boolean_t allow_symlinks);
* nr
+gf_lstat_dir (const char *path, struct stat *stbuf_in);
int32_t gf_roundup_power_of_two (int32_t nr);