diff options
author | Mohammed Rafi KC <rkavunga@redhat.com> | 2015-11-24 13:45:20 +0530 |
---|---|---|
committer | Rajesh Joseph <rjoseph@redhat.com> | 2015-11-26 03:41:36 -0800 |
commit | 5a52abb4af0d2d36e1b24e80cbfd349a9442a329 (patch) | |
tree | 8f7fe22a368c9a8529468d67450a3dd476fe9d09 /xlators/mgmt/glusterd/src | |
parent | 748138bc3001de6d29be50c9e72ec1b32cb20625 (diff) |
glusterd: copy snapshot object during duplication of volfile
Back port of > http://review.gluster.org/#/c/12734/
When creating duplicate volfile for hot/cold tier, we need to
copy the snapshot object in to volfile as it requires to generate
snapshot brick volfile.
>Change-Id: I39ccfa20cd1c16ef2801901e3cd3a31c76f8995d
>BUG: 1284789
>Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com>
Change-Id: Ia0892dfc3af24ee428e0aa0a3e23063a91049a57
BUG: 1285629
Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com>
Reviewed-on: http://review.gluster.org/12756
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Avra Sengupta <asengupt@redhat.com>
Reviewed-by: Rajesh Joseph <rjoseph@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c index ca07660b638..c29cbc92d7b 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.c +++ b/xlators/mgmt/glusterd/src/glusterd-utils.c @@ -655,6 +655,8 @@ glusterd_create_sub_tier_volinfo (glusterd_volinfo_t *volinfo, (*dup_volinfo)->is_snap_volume = volinfo->is_snap_volume; (*dup_volinfo)->status = volinfo->status; + (*dup_volinfo)->snapshot = volinfo->snapshot; + memcpy (&(*dup_volinfo)->tier_info, &volinfo->tier_info, sizeof (volinfo->tier_info)); |