mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
qemu: command: Move blkiotune checks to qemuCheckDiskConfig
This commit is contained in:
parent
5121457cad
commit
cf1fcd7b51
@ -1221,6 +1221,9 @@ int
|
||||
qemuCheckDiskConfig(virDomainDiskDefPtr disk,
|
||||
virQEMUCapsPtr qemuCaps)
|
||||
{
|
||||
if (qemuCheckDiskConfigBlkdeviotune(disk, qemuCaps) < 0)
|
||||
return -1;
|
||||
|
||||
if (virDiskNameToIndex(disk->dst) < 0) {
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||
_("unsupported disk type '%s'"), disk->dst);
|
||||
@ -1782,9 +1785,6 @@ qemuBuildDriveStr(virDomainDiskDefPtr disk,
|
||||
virDomainDiskIoTypeToString(disk->iomode));
|
||||
}
|
||||
|
||||
if (qemuCheckDiskConfigBlkdeviotune(disk, qemuCaps) < 0)
|
||||
goto error;
|
||||
|
||||
#define IOTUNE_ADD(_field, _label) \
|
||||
if (disk->blkdeviotune._field) { \
|
||||
virBufferAsprintf(&opt, ",throttling." _label "=%llu", \
|
||||
|
Loading…
x
Reference in New Issue
Block a user