Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
pve-manager
Commits
ff57b4a0
Commit
ff57b4a0
authored
Dec 04, 2013
by
Alexandre Derumier
Committed by
Dietmar Maurer
Dec 05, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hdedit : add io throttle max burst
Signed-off-by:
Alexandre Derumier
<
aderumier@odiso.com
>
parent
51482673
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
73 additions
and
0 deletions
+73
-0
HDEdit.js
www/manager/qemu/HDEdit.js
+73
-0
No files found.
www/manager/qemu/HDEdit.js
View file @
ff57b4a0
...
...
@@ -44,22 +44,49 @@ Ext.define('PVE.qemu.HDInputPanel', {
}
else
{
delete
me
.
drive
.
mbps_rd
;
}
if
(
values
.
mbps_rd_max
&&
values
.
mbps_rd
)
{
me
.
drive
.
mbps_rd_max
=
values
.
mbps_rd_max
;
}
else
{
delete
me
.
drive
.
mbps_rd_max
;
}
if
(
values
.
mbps_wr
)
{
me
.
drive
.
mbps_wr
=
values
.
mbps_wr
;
}
else
{
delete
me
.
drive
.
mbps_wr
;
}
if
(
values
.
mbps_wr_max
&&
values
.
mbps_wr
)
{
me
.
drive
.
mbps_wr_max
=
values
.
mbps_wr_max
;
}
else
{
delete
me
.
drive
.
mbps_wr_max
;
}
if
(
values
.
iops_rd
)
{
me
.
drive
.
iops_rd
=
values
.
iops_rd
;
}
else
{
delete
me
.
drive
.
iops_rd
;
}
if
(
values
.
iops_rd_max
&&
values
.
iops_rd
)
{
me
.
drive
.
iops_rd_max
=
values
.
iops_rd_max
;
}
else
{
delete
me
.
drive
.
iops_rd_max
;
}
if
(
values
.
iops_wr
)
{
me
.
drive
.
iops_wr
=
values
.
iops_wr
;
}
else
{
delete
me
.
drive
.
iops_wr
;
}
if
(
values
.
iops_wr_max
&&
values
.
iops_wr
)
{
me
.
drive
.
iops_wr_max
=
values
.
iops_wr_max
;
}
else
{
delete
me
.
drive
.
iops_wr_max
;
}
var
params
=
{};
params
[
confid
]
=
PVE
.
Parser
.
printQemuDrive
(
me
.
drive
);
...
...
@@ -106,6 +133,10 @@ Ext.define('PVE.qemu.HDInputPanel', {
values
.
mbps_wr
=
drive
.
mbps_wr
;
values
.
iops_rd
=
drive
.
iops_rd
;
values
.
iops_wr
=
drive
.
iops_wr
;
values
.
mbps_rd_max
=
drive
.
mbps_rd_max
;
values
.
mbps_wr_max
=
drive
.
mbps_wr_max
;
values
.
iops_rd_max
=
drive
.
iops_rd_max
;
values
.
iops_wr_max
=
drive
.
iops_wr_max
;
me
.
setValues
(
values
);
},
...
...
@@ -123,6 +154,7 @@ Ext.define('PVE.qemu.HDInputPanel', {
me
.
column1
=
[];
me
.
column2
=
[];
me
.
column3
=
[];
if
(
!
me
.
confid
||
me
.
unused
)
{
me
.
bussel
=
Ext
.
createWidget
(
'
PVE.form.ControllerSelector
'
,
{
...
...
@@ -252,6 +284,17 @@ Ext.define('PVE.qemu.HDInputPanel', {
});
me
.
column2
.
push
(
me
.
mbps_rd
);
me
.
mbps_rd_max
=
Ext
.
widget
(
'
numberfield
'
,
{
name
:
'
mbps_rd_max
'
,
minValue
:
1
,
step
:
1
,
fieldLabel
:
gettext
(
'
Read max burst
'
)
+
'
(MB)
'
,
labelWidth
:
width2
,
emptyText
:
gettext
(
'
default
'
)
});
me
.
column2
.
push
(
me
.
mbps_rd_max
);
me
.
mbps_wr
=
Ext
.
widget
(
'
numberfield
'
,
{
name
:
'
mbps_wr
'
,
minValue
:
1
,
...
...
@@ -262,6 +305,16 @@ Ext.define('PVE.qemu.HDInputPanel', {
});
me
.
column2
.
push
(
me
.
mbps_wr
);
me
.
mbps_wr_max
=
Ext
.
widget
(
'
numberfield
'
,
{
name
:
'
mbps_wr_max
'
,
minValue
:
1
,
step
:
1
,
fieldLabel
:
gettext
(
'
Write max burst
'
)
+
'
(MB)
'
,
labelWidth
:
width2
,
emptyText
:
gettext
(
'
default
'
)
});
me
.
column2
.
push
(
me
.
mbps_wr_max
);
me
.
iops_rd
=
Ext
.
widget
(
'
numberfield
'
,
{
name
:
'
iops_rd
'
,
minValue
:
10
,
...
...
@@ -272,6 +325,16 @@ Ext.define('PVE.qemu.HDInputPanel', {
});
me
.
column2
.
push
(
me
.
iops_rd
);
me
.
iops_rd_max
=
Ext
.
widget
(
'
numberfield
'
,
{
name
:
'
iops_rd_max
'
,
minValue
:
10
,
step
:
10
,
fieldLabel
:
gettext
(
'
Read max burst
'
)
+
'
(ops)
'
,
labelWidth
:
width2
,
emptyText
:
gettext
(
'
default
'
)
});
me
.
column2
.
push
(
me
.
iops_rd_max
);
me
.
iops_wr
=
Ext
.
widget
(
'
numberfield
'
,
{
name
:
'
iops_wr
'
,
minValue
:
10
,
...
...
@@ -282,6 +345,16 @@ Ext.define('PVE.qemu.HDInputPanel', {
});
me
.
column2
.
push
(
me
.
iops_wr
);
me
.
iops_wr_max
=
Ext
.
widget
(
'
numberfield
'
,
{
name
:
'
iops_wr_max
'
,
minValue
:
10
,
step
:
10
,
fieldLabel
:
gettext
(
'
Write max burst
'
)
+
'
(ops)
'
,
labelWidth
:
width2
,
emptyText
:
gettext
(
'
default
'
)
});
me
.
column2
.
push
(
me
.
iops_wr_max
);
me
.
callParent
();
}
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment