diff options
author | shishir gowda <sgowda@redhat.com> | 2013-10-24 15:47:14 +0530 |
---|---|---|
committer | shishir gowda <sgowda@redhat.com> | 2013-11-15 14:39:42 +0530 |
commit | 096b23f187d0b3ccbed25d8bd02723a61cc4da2d (patch) | |
tree | b4fbbd9de6396d9a2f8c7d1317da01b13e42a3b4 /xlators/mgmt/glusterd/src/glusterd-utils.c | |
parent | 30e6c5364a0484fddc655d43cd3a0224f21343e4 (diff) |
mgmt/glusterd: snapshot config changes
Also refactored code in glusterd for create command
Additionally, removed brick-op func from mgmt_iniate_all_phases
Change-Id: Iddcc332009c5716adee7f2b04c93b352fb983446
Signed-off-by: shishir gowda <sgowda@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-utils.c')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-utils.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c index 771b0af5a..1f5cc741b 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.c +++ b/xlators/mgmt/glusterd/src/glusterd-utils.c @@ -427,6 +427,12 @@ glusterd_volinfo_new (glusterd_volinfo_t **volinfo) { glusterd_volinfo_t *new_volinfo = NULL; int32_t ret = -1; + xlator_t *this = NULL; + glusterd_conf_t *conf = NULL; + + this = THIS; + + conf = this->private; GF_ASSERT (volinfo); @@ -455,6 +461,11 @@ glusterd_volinfo_new (glusterd_volinfo_t **volinfo) goto out; } + if (conf) + new_volinfo->snap_max_limit = conf->snap_max_limit; + else + new_volinfo->snap_max_limit = GLUSTERD_SNAPS_MAX_LIMIT; + new_volinfo->xl = THIS; *volinfo = new_volinfo; |