summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);