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:
Alexandre Derumier 2015-06-08 17:07:53 +02:00 committed by Dietmar Maurer
parent ad7d2886e4
commit b49ea621a0
2 changed files with 15 additions and 0 deletions

View File

@ -2,6 +2,8 @@ pve-manager (4.0-12) unstable; urgency=medium
* change pve-manager service type to oneshot
* add iothread option
-- Proxmox Support Team <support@proxmox.com> Wed, 10 Jun 2015 09:05:29 +0200
pve-manager (4.0-11) unstable; urgency=medium

View File

@ -39,6 +39,12 @@ Ext.define('PVE.qemu.HDInputPanel', {
delete me.drive.discard;
}
if (values.iothread && me.confid.match(/^virtio\d+$/)) {
me.drive.iothread = 'on';
} else {
delete me.drive.iothread;
}
if (values.cache) {
me.drive.cache = values.cache;
} else {
@ -88,6 +94,7 @@ Ext.define('PVE.qemu.HDInputPanel', {
values.diskformat = drive.format || 'raw';
values.cache = drive.cache || '';
values.discard = (drive.discard === 'on');
values.iothread = (drive.iothread === 'on');
me.setValues(values);
},
@ -227,6 +234,12 @@ Ext.define('PVE.qemu.HDInputPanel', {
name: 'discard'
});
me.column2.push({
xtype: 'pvecheckbox',
fieldLabel: gettext('Iothread'),
name: 'iothread'
});
me.callParent();
}
});