Commit 44022d43 authored by Alexandre Derumier's avatar Alexandre Derumier Committed by Dietmar Maurer

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: 's avatarAlexandre Derumier <aderumier@odiso.com>
parent e058559b
......@@ -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
......
......@@ -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();
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment