[pve-devel] [PATCH manager] fix #1230: add blocksize for ZFSPoolPlugin

Dominik Csapak d.csapak at proxmox.com
Mon Jan 2 15:13:34 CET 2017


On 01/02/2017 02:48 PM, Fabian Grünbichler wrote:
> Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
> ---
> Note: 8k is the implicit default in ZFS, maybe there is a better way to handle
> this on the GUI?
>
>  www/manager6/storage/ZFSPoolEdit.js | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/www/manager6/storage/ZFSPoolEdit.js b/www/manager6/storage/ZFSPoolEdit.js
> index 01bc4f6..b9f1567 100644
> --- a/www/manager6/storage/ZFSPoolEdit.js
> +++ b/www/manager6/storage/ZFSPoolEdit.js
> @@ -108,6 +108,13 @@ Ext.define('PVE.storage.ZFSPoolInputPanel', {
>  		checked: false,
>  		uncheckedValue: 0,
>  		fieldLabel: gettext('Thin provision')
> +	    },
> +	    {
> +		xtype: 'textfield',
> +		name: 'blocksize',
> +		value: '8k',
> +		fieldLabel: gettext('Block Size'),
> +		allowBlank: true
>  	    }
>  	];
>
>

you could use

emptyText: '8k'

so it is empty by default, but shows the implicit 8k value




More information about the pve-devel mailing list