summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSachin Pandit <spandit@redhat.com>2014-01-15 08:33:45 +0530
committerSachin Pandit <spandit@redhat.com>2014-01-15 08:40:25 +0530
commitc7cab23472b1d59958a0f39bdaf7776e09f039e4 (patch)
tree16fbdffc07b72918b02aecacce4a7561ad33a263
parent0473ec32d337d54262643a44c7ff0c42e57a0ab1 (diff)
glusterd/snapshot : Update the parent volume name of snap during restore.
Change-Id: I9663342e49073a172667220d4839b2beb65ffc0e BUG: 1040947 Signed-off-by: Sachin Pandit <spandit@redhat.com>
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-store.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-store.c b/xlators/mgmt/glusterd/src/glusterd-store.c
index 06979c2..e26bb1e 100644
--- a/xlators/mgmt/glusterd/src/glusterd-store.c
+++ b/xlators/mgmt/glusterd/src/glusterd-store.c
@@ -2958,6 +2958,7 @@ glusterd_store_retrieve_volume (char *volname, glusterd_snap_t *snap)
goto out;
strncpy (volinfo->volname, snap->snap_name, GLUSTERD_MAX_VOLUME_NAME);
GLUSTERD_GET_SNAP_DIR (volpath, parent_vol, snap->snap_name, priv);
+ strncpy (volinfo->parent_volname, volname, GLUSTERD_MAX_VOLUME_NAME);
} else {
strncpy (volinfo->volname, volname, GLUSTERD_MAX_VOLUME_NAME);
GLUSTERD_GET_VOLUME_DIR(volpath, volinfo, priv);