2020-06-25 14:53:05 +02:00
Ext . define ( 'PBS.window.CreateZFS' , {
extend : 'Proxmox.window.Edit' ,
xtype : 'pbsCreateZFS' ,
subject : 'ZFS' ,
showProgress : true ,
2023-09-07 14:19:32 +02:00
isCreate : true ,
2020-06-25 14:53:05 +02:00
onlineHelp : 'chapter_zfs' ,
width : 800 ,
url : '/nodes/localhost/disks/zfs' ,
method : 'POST' ,
items : [
{
xtype : 'inputpanel' ,
onGetValues : function ( values ) {
return values ;
} ,
column1 : [
{
xtype : 'proxmoxtextfield' ,
name : 'name' ,
fieldLabel : gettext ( 'Name' ) ,
2020-07-03 18:03:51 +02:00
minLength : 3 ,
allowBlank : false ,
2020-06-25 14:53:05 +02:00
} ,
{
xtype : 'proxmoxcheckbox' ,
name : 'add-datastore' ,
2020-07-02 17:05:58 +02:00
fieldLabel : gettext ( 'Add as Datastore' ) ,
2020-09-25 18:29:42 +02:00
value : '1' ,
} ,
2020-06-25 14:53:05 +02:00
] ,
column2 : [
{
xtype : 'proxmoxKVComboBox' ,
fieldLabel : gettext ( 'RAID Level' ) ,
name : 'raidlevel' ,
value : 'single' ,
comboItems : [
[ 'single' , gettext ( 'Single Disk' ) ] ,
[ 'mirror' , 'Mirror' ] ,
[ 'raid10' , 'RAID10' ] ,
[ 'raidz' , 'RAIDZ' ] ,
[ 'raidz2' , 'RAIDZ2' ] ,
2020-09-25 18:29:42 +02:00
[ 'raidz3' , 'RAIDZ3' ] ,
] ,
2020-06-25 14:53:05 +02:00
} ,
{
xtype : 'proxmoxKVComboBox' ,
fieldLabel : gettext ( 'Compression' ) ,
name : 'compression' ,
value : 'on' ,
comboItems : [
[ 'on' , 'on' ] ,
[ 'off' , 'off' ] ,
[ 'gzip' , 'gzip' ] ,
[ 'lz4' , 'lz4' ] ,
[ 'lzjb' , 'lzjb' ] ,
2020-09-25 18:29:42 +02:00
[ 'zle' , 'zle' ] ,
2021-07-30 13:39:34 +02:00
[ 'zstd' , 'zstd' ] ,
2020-09-25 18:29:42 +02:00
] ,
2020-06-25 14:53:05 +02:00
} ,
{
xtype : 'proxmoxintegerfield' ,
fieldLabel : gettext ( 'ashift' ) ,
minValue : 9 ,
maxValue : 16 ,
value : '12' ,
2020-09-25 18:29:42 +02:00
name : 'ashift' ,
} ,
2020-06-25 14:53:05 +02:00
] ,
columnB : [
{
xtype : 'pmxMultiDiskSelector' ,
name : 'devices' ,
nodename : 'localhost' ,
2020-07-03 17:59:58 +02:00
typeParameter : 'usage-type' ,
2020-06-25 14:53:05 +02:00
valueField : 'name' ,
height : 200 ,
emptyText : gettext ( 'No Disks unused' ) ,
2020-09-25 18:29:42 +02:00
} ,
] ,
2020-06-25 14:53:05 +02:00
} ,
{
xtype : 'displayfield' ,
padding : '5 0 0 0' ,
userCls : 'pmx-hint' ,
value : 'Note: ZFS is not compatible with disks backed by a hardware ' +
'RAID controller. For details see ' +
'<a target="_blank" href="' + Proxmox . Utils . get _help _link ( 'chapter_zfs' ) + '">the reference documentation</a>.' ,
} ,
] ,
} ) ;