[pve-devel] [PATCH v3 manager 2/2] ui: lxc: add edit window for device passthrough

Filip Schauer f.schauer at proxmox.com
Tue Apr 16 13:48:36 CEST 2024


On 15/04/2024 14:12, Fiona Ebner wrote:
>> +
>> +    advancedColumn2: [
>> +	{
>> +	    xtype: 'textfield',
>> +	    name: 'mode',
>> +	    editable: true,
>> +	    fieldLabel: gettext('Access Mode'),
>> +	    emptyText: '0660',
>> +	    labelAlign: 'right',
>> +	    validator: function(value) {
>> +		if (/^0[0-7]{3}$|^$/i.test(value)) {
> Should we require the leading zero here? Many users will be familiar
> with chown, where it is not required.

We already require the access mode to have a leading zero in
pve-container.





More information about the pve-devel mailing list