summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd.c
diff options
context:
space:
mode:
authorHarshavardhana <harsha@harshavardhana.net>2014-04-25 01:26:30 -0700
committerAnand Avati <avati@redhat.com>2014-05-03 14:49:57 -0700
commit853d198e8e4e4aa5ef933432480b585ebd836533 (patch)
tree843aadd51a211ea13f086a6032abc8aadb09ba4d /xlators/mgmt/glusterd/src/glusterd.c
parent49d235361cb42746329453121e83beeb7fe611e5 (diff)
glusterd: Allow symlink parent for snap_mount_folder
If '/var' is a symlink which is on OSX, 'glusterd' initialization fails which is not necessary fix it. Change-Id: I83adc16cfc0e0deaa18acf74ba99299ba4a21d60 BUG: 1061685 Signed-off-by: Harshavardhana <harsha@harshavardhana.net> Reviewed-on: http://review.gluster.org/7558 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd.c b/xlators/mgmt/glusterd/src/glusterd.c
index 691d410cd44..52498c7fee2 100644
--- a/xlators/mgmt/glusterd/src/glusterd.c
+++ b/xlators/mgmt/glusterd/src/glusterd.c
@@ -1146,7 +1146,7 @@ glusterd_init_snap_folder (xlator_t *this)
if ((-1 == ret) && (ENOENT == errno)) {
/* Create missing folders */
- ret = mkdir_p (snap_mount_folder, 0777, _gf_false);
+ ret = mkdir_p (snap_mount_folder, 0777, _gf_true);
if (-1 == ret) {
gf_log (this->name, GF_LOG_CRITICAL,