weizhouapache commented on code in PR #14247:
URL: https://github.com/apache/cloudstack/pull/14247#discussion_r4252088021


##########
plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/storage/KVMStorageProcessor.java:
##########
@@ -1544,10 +1544,19 @@ protected DiskDef.DiskBus getAttachDiskBusType(int 
deviceId, List<DiskDef> disks
             }
             if (disk.getBusType() == DiskDef.DiskBus.SCSI) {
                 return DiskDef.DiskBus.SCSI;
-            } else if (disk.getBusType() == DiskDef.DiskBus.VIRTIOBLK) {
-                return DiskDef.DiskBus.VIRTIOBLK;
             }
         }
+        if (deviceId != 0 && DiskDef.DiskBus.VIRTIOBLK == 
DiskDef.DiskBus.fromValue(
+                MapUtils.getString(controllerInfo, 
VmDetailConstants.ROOT_DISK_CONTROLLER))) {

Review Comment:
   that is ok, thanks



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to