From: Maximiliano Sandoval <m.sandoval@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH manager 3/3] ui: storage: SAN: display a warning when there is no cleanup
Date: Fri, 27 Nov 2026 16:32:42 +0100 [thread overview]
Message-ID: <20261127153243.488023-4-m.sandoval@proxmox.com> (raw)
In-Reply-To: <20261127153243.488023-1-m.sandoval@proxmox.com>
A LVM storage without saferemove nor on-volume-remove can potentially
leak the contents of a previously removed disk image on newly created
disk images.
A warning when both are disabled is added to discourage this from
happening.
Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
---
www/manager6/storage/wizard/Wizard.js | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/www/manager6/storage/wizard/Wizard.js b/www/manager6/storage/wizard/Wizard.js
index 27bf44ef..f38181c1 100644
--- a/www/manager6/storage/wizard/Wizard.js
+++ b/www/manager6/storage/wizard/Wizard.js
@@ -388,6 +388,7 @@ Ext.define('PVE.storage.wizard.SAN', {
let settings = {
xtype: 'inputpanel',
title: gettext('Storage'),
+ viewModel: {},
onlineHelp,
items: [
...(target
@@ -410,12 +411,14 @@ Ext.define('PVE.storage.wizard.SAN', {
name: 'saferemove',
uncheckedValue: 0,
boxLabel: gettext('Wipe Removed Volumes'),
+ reference: 'saferemove',
},
{
xtype: 'proxmoxcheckbox',
name: 'on-remove-discard',
uncheckedValue: 0,
boxLabel: gettext('Discard Removed Volumes'),
+ reference: 'on_remove_discard',
autoEl: {
tag: 'div',
'data-qtip': gettext(
@@ -423,6 +426,16 @@ Ext.define('PVE.storage.wizard.SAN', {
),
},
},
+ {
+ xtype: 'displayfield',
+ userCls: 'pmx-hint',
+ value: gettext(
+ 'Newly allocated images can potentially contain data from previously removed images if both "Wipe Remove Volumes" and "Discard Removed Volumes" are disabled.',
+ ),
+ bind: {
+ hidden: '{saferemove.checked || on_remove_discard.checked}',
+ },
+ },
],
advancedItems: [
vgname,
--
2.47.3
prev parent reply other threads:[~2026-11-27 15:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 15:32 [PATCH manager 0/3] ui: lvm: encourage the use of saferemove or on-volume-remove Maximiliano Sandoval
2026-11-27 15:32 ` [PATCH manager 1/3] ui: storage: SAN: add checkboxes for saferemove & on-volume-remove Maximiliano Sandoval
2026-11-27 15:32 ` [PATCH manager 2/3] ui: lvm: display a warning when there is no cleanup Maximiliano Sandoval
2026-11-27 15:32 ` Maximiliano Sandoval [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261127153243.488023-4-m.sandoval@proxmox.com \
--to=m.sandoval@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.