all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Maximiliano Sandoval <m.sandoval@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH manager 2/3] ui: lvm: display a warning when there is no cleanup
Date: Fri, 27 Nov 2026 16:32:41 +0100	[thread overview]
Message-ID: <20261127153243.488023-3-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/LVMEdit.js | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/www/manager6/storage/LVMEdit.js b/www/manager6/storage/LVMEdit.js
index 79bdb16c..8fcb924c 100644
--- a/www/manager6/storage/LVMEdit.js
+++ b/www/manager6/storage/LVMEdit.js
@@ -160,6 +160,8 @@ Ext.define('PVE.storage.LVMInputPanel', {
 
     onlineHelp: 'storage_lvm',
 
+    viewModel: {},
+
     onGetValues: function (values) {
         let me = this;
 
@@ -291,12 +293,14 @@ Ext.define('PVE.storage.LVMInputPanel', {
             name: 'saferemove',
             uncheckedValue: 0,
             fieldLabel: gettext('Wipe Removed Volumes'),
+            reference: 'saferemove',
         },
         {
             xtype: 'proxmoxcheckbox',
             name: 'on-remove-discard',
             uncheckedValue: 0,
             fieldLabel: gettext('Discard Removed Volumes'),
+            reference: 'on_remove_discard',
             autoEl: {
                 tag: 'div',
                 'data-qtip': gettext(
@@ -304,5 +308,15 @@ Ext.define('PVE.storage.LVMInputPanel', {
                 ),
             },
         },
+        {
+            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}',
+            },
+        },
     ],
 });
-- 
2.47.3





  parent reply	other threads:[~2026-11-27 15:33 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 ` Maximiliano Sandoval [this message]
2026-11-27 15:32 ` [PATCH manager 3/3] ui: storage: SAN: display a warning when there is no cleanup Maximiliano Sandoval

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-3-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.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal