mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-06-07 23:09:17 +08:00
fix: ssd(rotation_rate=1) option only applicable to scsi-hd device
This commit is contained in:
@@ -270,7 +270,9 @@ func (s *SKVMGuestInstance) getVdiskDesc(disk api.GuestdiskJsonDesc, isArm bool)
|
||||
}
|
||||
cmd += fmt.Sprintf(",id=drive_%d", diskIndex)
|
||||
if isSsd {
|
||||
cmd += ",rotation_rate=1"
|
||||
if diskDriver == DISK_DRIVER_SCSI {
|
||||
cmd += ",rotation_rate=1"
|
||||
}
|
||||
}
|
||||
return cmd
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user