- let mountopts = (values.mountoptions || []).join(';');
- PVE.Utils.propertyStringSet(me.mp, values.mp, 'mp');
- PVE.Utils.propertyStringSet(me.mp, values.mountoptions, 'mountoptions', mountopts);
- PVE.Utils.propertyStringSet(me.mp, values.backup, 'backup');
- PVE.Utils.propertyStringSet(me.mp, values.quota, 'quota');
- PVE.Utils.propertyStringSet(me.mp, values.ro, 'ro');
- PVE.Utils.propertyStringSet(me.mp, values.acl, 'acl');
- PVE.Utils.propertyStringSet(me.mp, values.replicate, 'replicate');
+ let setMPOpt = (k, src, v) => PVE.Utils.propertyStringSet(me.mp, src, k, v);
+
+ setMPOpt('mp', values.mp);
+ let mountOpts = (values.mountoptions || []).join(';');
+ setMPOpt('mountoptions', values.mountoptions, mountOpts);
+ setMPOpt('mp', values.mp);
+ setMPOpt('backup', values.backup);
+ setMPOpt('quota', values.quota);
+ setMPOpt('ro', values.ro);
+ setMPOpt('acl', values.acl);
+ setMPOpt('replicate', values.replicate);