Updated Branches: refs/heads/object_store efd249d61 -> 536feab85
when copy volume to secondary storage, need to add full volume path Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/536feab8 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/536feab8 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/536feab8 Branch: refs/heads/object_store Commit: 536feab856379d89370a05453e065b143a3159a8 Parents: efd249d Author: Edison Su <[email protected]> Authored: Tue May 21 17:47:38 2013 -0700 Committer: Edison Su <[email protected]> Committed: Tue May 21 17:47:38 2013 -0700 ---------------------------------------------------------------------- .../xen/resource/XenServerStorageProcessor.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/536feab8/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServerStorageProcessor.java ---------------------------------------------------------------------- diff --git a/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServerStorageProcessor.java b/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServerStorageProcessor.java index bdc3d30..b4bcf20 100644 --- a/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServerStorageProcessor.java +++ b/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServerStorageProcessor.java @@ -990,7 +990,7 @@ public class XenServerStorageProcessor implements StorageProcessor { String destVolumeUUID = destVdi.getUuid(conn); VolumeObjectTO newVol = new VolumeObjectTO(); - newVol.setPath(destVolumeUUID); + newVol.setPath(destVolume.getPath() + File.separator + destVolumeUUID + ".vhd"); newVol.setSize(srcVolume.getSize()); return new CopyCmdAnswer(newVol); } catch (Exception e) {
