mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-09 04:51:09 +00:00
add iothread option
only for virtio disk (virtio-scsi qemu 2.3 is not thread-safe currently) improve me: grey-out/hidden the option if !virtio Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
ad7d2886e4
commit
b49ea621a0
2
debian/changelog.Debian
vendored
2
debian/changelog.Debian
vendored
@ -2,6 +2,8 @@ pve-manager (4.0-12) unstable; urgency=medium
|
|||||||
|
|
||||||
* change pve-manager service type to oneshot
|
* change pve-manager service type to oneshot
|
||||||
|
|
||||||
|
* add iothread option
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Wed, 10 Jun 2015 09:05:29 +0200
|
-- Proxmox Support Team <support@proxmox.com> Wed, 10 Jun 2015 09:05:29 +0200
|
||||||
|
|
||||||
pve-manager (4.0-11) unstable; urgency=medium
|
pve-manager (4.0-11) unstable; urgency=medium
|
||||||
|
@ -39,6 +39,12 @@ Ext.define('PVE.qemu.HDInputPanel', {
|
|||||||
delete me.drive.discard;
|
delete me.drive.discard;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (values.iothread && me.confid.match(/^virtio\d+$/)) {
|
||||||
|
me.drive.iothread = 'on';
|
||||||
|
} else {
|
||||||
|
delete me.drive.iothread;
|
||||||
|
}
|
||||||
|
|
||||||
if (values.cache) {
|
if (values.cache) {
|
||||||
me.drive.cache = values.cache;
|
me.drive.cache = values.cache;
|
||||||
} else {
|
} else {
|
||||||
@ -88,6 +94,7 @@ Ext.define('PVE.qemu.HDInputPanel', {
|
|||||||
values.diskformat = drive.format || 'raw';
|
values.diskformat = drive.format || 'raw';
|
||||||
values.cache = drive.cache || '';
|
values.cache = drive.cache || '';
|
||||||
values.discard = (drive.discard === 'on');
|
values.discard = (drive.discard === 'on');
|
||||||
|
values.iothread = (drive.iothread === 'on');
|
||||||
|
|
||||||
me.setValues(values);
|
me.setValues(values);
|
||||||
},
|
},
|
||||||
@ -227,6 +234,12 @@ Ext.define('PVE.qemu.HDInputPanel', {
|
|||||||
name: 'discard'
|
name: 'discard'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
me.column2.push({
|
||||||
|
xtype: 'pvecheckbox',
|
||||||
|
fieldLabel: gettext('Iothread'),
|
||||||
|
name: 'iothread'
|
||||||
|
});
|
||||||
|
|
||||||
me.callParent();
|
me.callParent();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user