[pve-devel] [PATCH 1/1] Extend GUI to show new ZFS features

mir at datanom.net mir at datanom.net
Wed Jun 25 20:29:15 CEST 2014


From: Michael Rasmussen <mir at datanom.net>

Signed-off-by: Michael Rasmussen <mir at datanom.net>
---
 www/manager/storage/ZFSEdit.js | 34 ++++++++++++++++++++++++++++++++--
 1 file changed, 32 insertions(+), 2 deletions(-)

diff --git a/www/manager/storage/ZFSEdit.js b/www/manager/storage/ZFSEdit.js
index dc6b906..c74eb50 100644
--- a/www/manager/storage/ZFSEdit.js
+++ b/www/manager/storage/ZFSEdit.js
@@ -61,7 +61,15 @@ Ext.define('PVE.storage.ZFSInputPanel', {
         value: 'iqn.2010-09.org.openindiana:omnios:....',
         fieldLabel: gettext('Target'),
         allowBlank: false
-        }
+        },
+	{
+	xtype: me.create ? 'textfield' : 'displayfield',
+	name: 'comstar_tg',
+	height: 22, // hack: set same height as text fields
+	value: '',
+	fieldLabel: gettext('Target group'),
+	allowBlank: true
+	}
     ];
 
     var providers = Ext.create('Ext.data.Store', {
@@ -93,7 +101,29 @@ Ext.define('PVE.storage.ZFSInputPanel', {
         store: providers,
         displayField: 'name',
         valueField: 'provider'
-        }
+        },
+        {
+	xtype: 'pvecheckbox',
+	name: 'sparse',
+	checked: false,
+	uncheckedValue: 0,
+	fieldLabel: gettext('Thin provision')
+	},
+        {
+	xtype: 'pvecheckbox',
+	name: 'nowritecache',
+	checked: true,
+	uncheckedValue: 0,
+	fieldLabel: gettext('Write cache')
+	},
+        {
+	xtype: me.create ? 'textfield' : 'displayfield',
+	name: 'comstar_hg',
+	height: 22, // hack: set same height as text fields
+	value: '',
+	fieldLabel: gettext('Host group'),
+	allowBlank: true
+	}
     ];
 
     if (me.create || me.storageId !== 'local') {
-- 
2.0.0


----

This mail was virus scanned and spam checked before delivery.
This mail is also DKIM signed. See header dkim-signature.




More information about the pve-devel mailing list