From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id 14DEE1FF0BC for ; Wed, 02 Dec 2026 11:31:28 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 0BF322159C; Wed, 02 Dec 2026 11:31:25 +0100 (CET) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 02 Dec 2026 11:31:21 +0100 Message-Id: Subject: Re: [PATCH manager 1/3] ui: storage: SAN: add checkboxes for saferemove & on-volume-remove From: "Lukas Sichert" To: "Maximiliano Sandoval" , References: <20261127153243.488023-1-m.sandoval@proxmox.com> <20261127153243.488023-2-m.sandoval@proxmox.com> In-Reply-To: <20261127153243.488023-2-m.sandoval@proxmox.com> X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1796207481831 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.402 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: R72DTMAG5W3Q3HZCUUHBJMS7LRLDSZDV X-Message-ID-Hash: R72DTMAG5W3Q3HZCUUHBJMS7LRLDSZDV X-MailFrom: l.sichert@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On 2026-11-27 16:32, Maximiliano Sandoval wrote: > Signed-off-by: Maximiliano Sandoval > --- > www/manager6/storage/wizard/Wizard.js | 36 ++++++++++++++++++++++++++- > - return { > + let values =3D { > storage: value('storage'), > vgname: value('vgname') || value('storage'), > 'snapshot-as-volume-chain': value('snapshot-as-volume-chain'= ) ? 1 : 0, > + saferemove: value('saferemove') ? 1 : 0, > nodes: > me.wizardType =3D=3D=3D 'fc' > ? [] > @@ -160,6 +161,14 @@ Ext.define('PVE.storage.wizard.SAN', { > .join(',') > : me.connection.nodes, > }; > + > + if (value('on-remove-discard')) { > + let onRemove =3D { discard: 1 }; > + let onRemoveString =3D PVE.Parser.printPropertyString(onRemo= ve); > + values['on-volume-remove'] =3D onRemoveString; > + } > + > + return values; nit: Generally it is avoided to serialize the value 0 into the config. Already logic is added to only write the on-volume-remove parameter string into the config if enabled. This should also be done for saferemove and 'snapshot-as-volume-chain'. The LVMEdit window already does this correctly for 'snapshot-as-volume-chain'. Correct handling for saferemove should be added there as well in the future.