Skip to content

Commit 49c48e1

Browse files
Srivastava, PiyushSrivastava, Piyush
authored andcommitted
bugfix/CSTACKEX-131: Updated detailed comment
1 parent 43bd3a8 commit 49c48e1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/storage/IscsiAdmStorageAdaptor.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,9 @@ public KVMPhysicalDisk copyPhysicalDisk(KVMPhysicalDisk srcDisk, String destVolu
461461
QemuImg q = new QemuImg(timeout);
462462
q.convert(srcFile, destFile);
463463
// Below fix is required when vendor depends on host based copy rather than storage CAN_CREATE_VOLUME_FROM_VOLUME capability
464+
// When host based template copy is triggered , small size template sits in RAM(depending on host memory and RAM) and copy is marked successful and by the time flush to storage is triggered
465+
// disconectPhysicalDisk would disconnect the lun , hence template staying in RAM is not copied to storage lun. Below does flushing of data to storage and marking
466+
// copy as succesful once flush is complete.
464467
Script flushCmd = new Script(true, "blockdev", 0, logger);
465468
flushCmd.add("--flushbufs", destDisk.getPath());
466469
String flushResult = flushCmd.execute();

0 commit comments

Comments
 (0)