[pve-devel] [PATCH] allow minimum disk sizes of nearly 1MB

tgrodzinski t.grodzinski at profihost.ag
Thu Aug 2 15:50:57 CEST 2012


Signed-off-by: tgrodzinski <t.grodzinski at profihost.ag>
---
 www/manager/openvz/RessourceEdit.js |    4 +++-
 www/manager/qemu/HDEdit.js          |    3 ++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/www/manager/openvz/RessourceEdit.js b/www/manager/openvz/RessourceEdit.js
index 1cb3217..4d3321d 100644
--- a/www/manager/openvz/RessourceEdit.js
+++ b/www/manager/openvz/RessourceEdit.js
@@ -38,7 +38,9 @@ Ext.define('PVE.openvz.RessourceInputPanel', {
 	    {
 		xtype: 'numberfield',
 		name: 'disk',
-		minValue: 0.5,
+		minValue: 0.001,
+		maxValue: 128*1024,
+		decimalPrecision: 3,
 		value: '4',
 		step: 1,
 		fieldLabel: gettext('Disk size') + ' (GB)',
diff --git a/www/manager/qemu/HDEdit.js b/www/manager/qemu/HDEdit.js
index 03b145d..004a222 100644
--- a/www/manager/qemu/HDEdit.js
+++ b/www/manager/qemu/HDEdit.js
@@ -165,8 +165,9 @@ Ext.define('PVE.qemu.HDInputPanel', {
 
 	    me.hdsizesel = Ext.createWidget('numberfield', {
 		name: 'disksize',
-		minValue: 1,
+		minValue: 0.001,
 		maxValue: 128*1024,
+		decimalPrecision: 3,
 		value: '32',
 		fieldLabel: gettext('Disk size') + ' (GB)',
 		allowBlank: false
-- 
1.7.9.5




More information about the pve-devel mailing list