mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #15163 from swordqiu/hotfix/qj-ssd-flag-for-scsi-hd-only
fix: ssd(rotation_rate=1) option only applicable to scsi-hd device
This commit is contained in:
@@ -296,7 +296,9 @@ func getDiskDeviceOption(optDrv QemuOptions, disk *desc.SGuestDisk) string {
|
||||
}
|
||||
opt += fmt.Sprintf(",id=drive_%d", diskIndex)
|
||||
if isSsd {
|
||||
opt += ",rotation_rate=1"
|
||||
if diskDriver == DISK_DRIVER_SCSI {
|
||||
opt += ",rotation_rate=1"
|
||||
}
|
||||
}
|
||||
return optDrv.Device(opt)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user