diff options
author | Harshavardhana <harsha@harshavardhana.net> | 2014-06-23 13:20:07 -0700 |
---|---|---|
committer | Harshavardhana <harsha@harshavardhana.net> | 2014-06-24 23:55:57 -0700 |
commit | 5740fd404827a70e6318b6fff5773a9d9234d704 (patch) | |
tree | 531bf5517152764e2dd9374eb2f0b9491dd88ec0 /xlators | |
parent | f20d0ef8ad7d2f65a9234fc11101830873a9f6ab (diff) |
glusterd: Use mkdir_p to create DEFAULT_WORKDIR
On non-Linux platforms FSH(Filesystem Hierarchy Standard)
is not followed 'create' the default expected directory.
Change-Id: Ia55dc99aa398efb6d2d140985cbc0ae11bdc763c
BUG: 1111774
Signed-off-by: Harshavardhana <harsha@harshavardhana.net>
Reviewed-on: http://review.gluster.org/8155
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Prashanth Pai <ppai@redhat.com>
Reviewed-by: Humble Devassy Chirammal <humble.devassy@gmail.com>
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd.c b/xlators/mgmt/glusterd/src/glusterd.c index c2e6fe8b251..3e8a3e2e17a 100644 --- a/xlators/mgmt/glusterd/src/glusterd.c +++ b/xlators/mgmt/glusterd/src/glusterd.c @@ -1198,7 +1198,7 @@ init (xlator_t *this) if ((-1 == ret) && (ENOENT == errno)) { - ret = mkdir (workdir, 0777); + ret = mkdir_p (workdir, 0777, _gf_true); if (-1 == ret) { gf_log (this->name, GF_LOG_CRITICAL, |