[pve-devel] [PATCH manager 1/2] fix compression selection in backup window

Dominik Csapak d.csapak at proxmox.com
Thu Mar 31 11:34:24 CEST 2016


we wrongly assumed, that no compression argument for
vzdump meant 'no compression', instead it means 'lzo'

this patch mirrors that behaviour on the gui

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/dc/Backup.js                | 2 +-
 www/manager6/form/CompressionSelector.js | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/www/manager6/dc/Backup.js b/www/manager6/dc/Backup.js
index 1a2a241..24bad1f 100644
--- a/www/manager6/dc/Backup.js
+++ b/www/manager6/dc/Backup.js
@@ -172,7 +172,7 @@ Ext.define('PVE.dc.BackupEdit', {
 		fieldLabel: gettext('Compression'),
 		name: 'compress',
 		deleteEmpty: me.create ? false : true,
-		value: me.create ? 'lzo' : ''
+		value: '__default__'
 	    },
 	    {
 		xtype: 'pveBackupModeSelector',
diff --git a/www/manager6/form/CompressionSelector.js b/www/manager6/form/CompressionSelector.js
index 1a5299f..4e1f7e2 100644
--- a/www/manager6/form/CompressionSelector.js
+++ b/www/manager6/form/CompressionSelector.js
@@ -2,8 +2,8 @@ Ext.define('PVE.form.CompressionSelector', {
     extend: 'PVE.form.KVComboBox',
     alias: ['widget.pveCompressionSelector'],
     comboItems: [
-                ['__default__', PVE.Utils.noneText],
-                ['lzo', 'LZO (' + gettext('fast') + ')'],
+                ['0', PVE.Utils.noneText],
+                ['__default__', 'LZO (' + gettext('fast') + ')'],
                 ['gzip', 'GZIP (' + gettext('good') + ')']
     ]
 });
-- 
2.1.4





More information about the pve-devel mailing list