[pve-devel] [PATCH manager 16/17] disable discard for non-scsi disks
Dominik Csapak
d.csapak at proxmox.com
Wed Jul 19 15:45:28 CEST 2017
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/manager6/qemu/HDEdit.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/www/manager6/qemu/HDEdit.js b/www/manager6/qemu/HDEdit.js
index aeac7dd0..3db3f3ca 100644
--- a/www/manager6/qemu/HDEdit.js
+++ b/www/manager6/qemu/HDEdit.js
@@ -18,6 +18,7 @@ Ext.define('PVE.qemu.HDInputPanel', {
onControllerChange: function(field) {
var value = field.getValue();
this.lookup('iothread').setDisabled(!value.match(/^(virtio|scsi)/));
+ this.lookup('discard').setDisabled(!value.match(/^scsi/));
},
control: {
--
2.11.0
More information about the pve-devel
mailing list