[pve-devel] [PATCH 1/5] disable format selection for rbd, sheepdog, nexenta
Alexandre Derumier
aderumier at odiso.com
Fri Aug 17 15:51:19 CEST 2012
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
www/manager/qemu/HDEdit.js | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/www/manager/qemu/HDEdit.js b/www/manager/qemu/HDEdit.js
index 004a222..b8ac20d 100644
--- a/www/manager/qemu/HDEdit.js
+++ b/www/manager/qemu/HDEdit.js
@@ -191,7 +191,11 @@ Ext.define('PVE.qemu.HDInputPanel', {
me.hdfilesel.setVisible(true);
me.hdsizesel.setDisabled(true);
me.hdsizesel.setVisible(false);
- } else if (rec.data.type === 'lvm') {
+ } else if (rec.data.type === 'lvm' ||
+ rec.data.type === 'rbd' ||
+ rec.data.type === 'sheepdog' ||
+ rec.data.type === 'nexenta'
+ ) {
me.hdfilesel.setDisabled(true);
me.hdfilesel.setVisible(false);
me.formatsel.setValue('raw');
--
1.7.2.5
More information about the pve-devel
mailing list