summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
Diffstat (limited to 'xlators')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-snapshot.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-snapshot.c b/xlators/mgmt/glusterd/src/glusterd-snapshot.c
index e97c62ff355..7848a26babb 100644
--- a/xlators/mgmt/glusterd/src/glusterd-snapshot.c
+++ b/xlators/mgmt/glusterd/src/glusterd-snapshot.c
@@ -5228,6 +5228,9 @@ glusterd_do_snap_vol (glusterd_volinfo_t *origin_vol, glusterd_snap_t *snap,
}
cds_list_add_tail (&snap_vol->vol_list, &snap->volumes);
strcpy(snap_vol->volname, clonename);
+ gf_uuid_copy (snap_vol->restored_from_snap,
+ origin_vol->snapshot->snap_id);
+
} else {
GLUSTERD_GET_UUID_NOHYPHEN (snap_vol->volname, *snap_volid);
strcpy (snap_vol->parent_volname, origin_vol->volname);