diff options
author | Raghavendra Bhat <raghavendra@redhat.com> | 2013-10-24 15:05:04 +0530 |
---|---|---|
committer | shishir gowda <sgowda@redhat.com> | 2013-11-15 12:48:08 +0530 |
commit | 262d9379e1dbe909e2a622a7e1806b70d3a59591 (patch) | |
tree | e3d82515f33762011e63cb082bc8c238938221b6 /xlators/mgmt/glusterd/src/glusterd.c | |
parent | d8c95f33e2557aff81d4a7f3e22f1c784183f5aa (diff) |
mgmt/glusterd: handle snap volume store and actual volume store separately
Change-Id: I8b88fe94d0f9ee1089cafdda037abcf2f7a180ca
Signed-off-by: Raghavendra Bhat <raghavendra@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd.c')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd.c b/xlators/mgmt/glusterd/src/glusterd.c index acefc8e42..c0531d375 100644 --- a/xlators/mgmt/glusterd/src/glusterd.c +++ b/xlators/mgmt/glusterd/src/glusterd.c @@ -1239,6 +1239,16 @@ init (xlator_t *this) exit (1); } + snprintf (storedir, PATH_MAX, "%s/%s", workdir, + GLUSTERD_VOL_SNAP_CG_DIR_PREFIX); + ret = mkdir (storedir, 0777); + if ((-1 == ret) && (errno != EEXIST)) { + gf_log (this->name, GF_LOG_CRITICAL, + "Unable to create cgs directory %s" + " ,errno = %d", storedir, errno); + exit (1); + } + ret = glusterd_rpcsvc_options_build (this->options); if (ret) goto out; |