mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
conf: disk: Mark VIR_DOMAIN_DISK_IO_DEFAULT as 0 and simplify parsing
This commit is contained in:
parent
8a3dea1f11
commit
ffaacefada
@ -6967,8 +6967,7 @@ virDomainDiskDefDriverParseXML(virDomainDiskDefPtr def,
|
||||
}
|
||||
|
||||
if (iotag) {
|
||||
if ((def->iomode = virDomainDiskIoTypeFromString(iotag)) < 0 ||
|
||||
def->iomode == VIR_DOMAIN_DISK_IO_DEFAULT) {
|
||||
if ((def->iomode = virDomainDiskIoTypeFromString(iotag)) <= 0) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||
_("unknown disk io mode '%s'"), iotag);
|
||||
goto cleanup;
|
||||
|
@ -622,7 +622,7 @@ typedef enum {
|
||||
} virDomainDiskGeometryTrans;
|
||||
|
||||
typedef enum {
|
||||
VIR_DOMAIN_DISK_IO_DEFAULT,
|
||||
VIR_DOMAIN_DISK_IO_DEFAULT = 0,
|
||||
VIR_DOMAIN_DISK_IO_NATIVE,
|
||||
VIR_DOMAIN_DISK_IO_THREADS,
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user