[pve-devel] [PATCH] Extend ZFS GUI to include new features

mir at datanom.net mir at datanom.net
Thu Jun 26 20:27:04 CEST 2014


From: Michael Rasmussen <mir at datanom.net>

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

diff --git a/www/manager/storage/ZFSEdit.js b/www/manager/storage/ZFSEdit.js
index 2a5a042..8581dc4 100644
--- a/www/manager/storage/ZFSEdit.js
+++ b/www/manager/storage/ZFSEdit.js
@@ -62,6 +62,14 @@ Ext.define('PVE.storage.ZFSInputPanel', {
 		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
+	    }
 	];
 
 	me.column2 = [
@@ -80,6 +88,27 @@ Ext.define('PVE.storage.ZFSInputPanel', {
 		fieldLabel: gettext('iSCSI Provider'),
 		allowBlank: false
 	    }
+	    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