mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-07 06:13:28 +00:00
fix compression selector
This commit is contained in:
parent
341e4b0bfa
commit
b34b68c2b8
8
debian/changelog.Debian
vendored
8
debian/changelog.Debian
vendored
@ -1,3 +1,11 @@
|
|||||||
|
pve-manager (2.0-22) unstable; urgency=low
|
||||||
|
|
||||||
|
* fix lint errors
|
||||||
|
|
||||||
|
* fix compression selector
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Fri, 10 Feb 2012 12:26:39 +0100
|
||||||
|
|
||||||
pve-manager (2.0-21) unstable; urgency=low
|
pve-manager (2.0-21) unstable; urgency=low
|
||||||
|
|
||||||
* fix postinst script (write correct /root/.forward)
|
* fix postinst script (write correct /root/.forward)
|
||||||
|
@ -2,7 +2,7 @@ RELEASE=2.0
|
|||||||
|
|
||||||
VERSION=2.0
|
VERSION=2.0
|
||||||
PACKAGE=pve-manager
|
PACKAGE=pve-manager
|
||||||
PACKAGERELEASE=21
|
PACKAGERELEASE=22
|
||||||
|
|
||||||
BINDIR=${DESTDIR}/usr/bin
|
BINDIR=${DESTDIR}/usr/bin
|
||||||
PERLLIBDIR=${DESTDIR}/usr/share/perl5
|
PERLLIBDIR=${DESTDIR}/usr/share/perl5
|
||||||
|
@ -97,7 +97,7 @@ Ext.define('PVE.form.ComboGrid', {
|
|||||||
|
|
||||||
if (me.enableAfterLoad) {
|
if (me.enableAfterLoad) {
|
||||||
delete me.enableAfterLoad;
|
delete me.enableAfterLoad;
|
||||||
me.setDisabled(false);
|
me.setDisabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
var def = me.getValue();
|
var def = me.getValue();
|
||||||
|
@ -6,20 +6,9 @@ Ext.define('PVE.form.CompressionSelector', {
|
|||||||
var me = this;
|
var me = this;
|
||||||
|
|
||||||
me.data = [
|
me.data = [
|
||||||
['', 'Default (qemu64)'],
|
['', 'none'],
|
||||||
['486', '486'],
|
['lzo', 'LZO (fast)'],
|
||||||
['athlon', 'athlon'],
|
['gzip', 'GZIP (good)']
|
||||||
['core2duo', 'core2duo'],
|
|
||||||
['coreduo', 'coreduo'],
|
|
||||||
['kvm32', 'kvm32'],
|
|
||||||
['kvm64', 'kvm64'],
|
|
||||||
['pentium', 'pentium'],
|
|
||||||
['pentium2', 'pentium2'],
|
|
||||||
['pentium3', 'pentium3'],
|
|
||||||
['phenom', 'phenom'],
|
|
||||||
['qemu32', 'qemu32'],
|
|
||||||
['qemu64', 'qemu64'],
|
|
||||||
['host', 'host']
|
|
||||||
];
|
];
|
||||||
|
|
||||||
me.callParent();
|
me.callParent();
|
||||||
|
@ -77,7 +77,7 @@ Ext.define('PVE.qemu.CreateWizard', {
|
|||||||
name: 'pool',
|
name: 'pool',
|
||||||
value: '',
|
value: '',
|
||||||
allowBlank: true
|
allowBlank: true
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
onGetValues: function(values) {
|
onGetValues: function(values) {
|
||||||
if (!values.name) {
|
if (!values.name) {
|
||||||
|
@ -43,10 +43,9 @@ Ext.define('PVE.window.Backup', {
|
|||||||
name: 'mode'
|
name: 'mode'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
xtype: 'pvecheckbox',
|
xtype: 'pveCompressionSelector',
|
||||||
name: 'compress',
|
name: 'compress',
|
||||||
uncheckedValue: 0,
|
value: 'lzo',
|
||||||
checked: true,
|
|
||||||
fieldLabel: 'Compress'
|
fieldLabel: 'Compress'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -59,16 +58,18 @@ Ext.define('PVE.window.Backup', {
|
|||||||
handler: function(){
|
handler: function(){
|
||||||
var storage = storagesel.getValue();
|
var storage = storagesel.getValue();
|
||||||
var values = form.getValues();
|
var values = form.getValues();
|
||||||
console.dir(me.vmid, me.nodename, values.online);
|
var params = {
|
||||||
|
|
||||||
PVE.Utils.API2Request({
|
|
||||||
url: '/nodes/' + me.nodename + '/vzdump',
|
|
||||||
params: {
|
|
||||||
storage: storage,
|
storage: storage,
|
||||||
vmid: me.vmid,
|
vmid: me.vmid,
|
||||||
compress: values.compress,
|
|
||||||
mode: values.mode
|
mode: values.mode
|
||||||
},
|
};
|
||||||
|
if (values.compress) {
|
||||||
|
params.compress = values.compress;
|
||||||
|
}
|
||||||
|
|
||||||
|
PVE.Utils.API2Request({
|
||||||
|
url: '/nodes/' + me.nodename + '/vzdump',
|
||||||
|
params: params,
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
failure: function (response, opts) {
|
failure: function (response, opts) {
|
||||||
Ext.Msg.alert('Error',response.htmlStatus);
|
Ext.Msg.alert('Error',response.htmlStatus);
|
||||||
|
Loading…
Reference in New Issue
Block a user