[pve-devel] Limit disk IO
Timo Grodzinski
t.grodzinski at profihost.ag
Tue Jun 12 09:29:19 CEST 2012
Am 07.06.2012 12:58, schrieb Timo Grodzinski:
> ...
> I want to make the configuration of the disk io limit available via web
> interface.
> ...
Here is the patch.
Are there some comments, anything to change, pretty it up, ... ?
Timo
diff --git a/www/manager/qemu/HDEdit.js b/www/manager/qemu/HDEdit.js
index 6b0dfc1..679e5c4 100644
--- a/www/manager/qemu/HDEdit.js
+++ b/www/manager/qemu/HDEdit.js
@@ -211,6 +211,40 @@ Ext.define('PVE.qemu.HDInputPanel', {
});
}
+ me.bps_rd = Ext.widget('numberfield', {
+ name: 'bps_read',
+ minValue: 0,
+ value: '0',
+ fieldLabel: 'Read IO (byte/s)',
+ allowBlank: false
+ });
+ me.column2.push(me.bps_rd);
+ me.bps_wr = Ext.widget('numberfield', {
+ name: 'bps_write',
+ minValue: 0,
+ value: '0',
+ fieldLabel: 'Write IO (byte/s)',
+ allowBlank: false
+ });
+ me.column2.push(me.bps_wr);
+
+ me.iops_rd = Ext.widget('numberfield', {
+ name: 'iops_read',
+ minValue: 0,
+ value: '0',
+ fieldLabel: 'Read IO (ops/s)',
+ allowBlank: false
+ });
+ me.column2.push(me.iops_rd);
+ me.iops_wr = Ext.widget('numberfield', {
+ name: 'iops_write',
+ minValue: 0,
+ value: '0',
+ fieldLabel: 'Write IO (ops/s)',
+ allowBlank: false
+ });
+ me.column2.push(me.iops_wr);
+
me.callParent();
}
});
More information about the pve-devel
mailing list