Skip to content

Commit a22d92f

Browse files
committed
CLOUDSTACK-4386
XS Creating templates from volume - send the physical size in the copycommand which accordingly will populate template store ref and the usage_event tables with the right physical size Signed off by : nitin mehta<nitin.mehta@citrix.com>
1 parent da0bb63 commit a22d92f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServerStorageProcessor.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1391,6 +1391,7 @@ public Answer createTemplateFromVolume(CopyCommand cmd) {
13911391
newTemplate.setPath(installPath);
13921392
newTemplate.setFormat(ImageFormat.VHD);
13931393
newTemplate.setSize(virtualSize);
1394+
newTemplate.setPhysicalSize(physicalSize);
13941395
CopyCmdAnswer answer = new CopyCmdAnswer(newTemplate);
13951396
return answer;
13961397
} catch (Exception e) {

0 commit comments

Comments
 (0)