* [pve-devel] [PATCH manager] ui: storage edit: warn about disabling snapshot-as-volume-chain on LVM
@ 2025-08-12 8:28 Fiona Ebner
2025-08-12 10:23 ` [pve-devel] applied: " Fabian Grünbichler
0 siblings, 1 reply; 2+ messages in thread
From: Fiona Ebner @ 2025-08-12 8:28 UTC (permalink / raw)
To: pve-devel
Existing qcow2 volumes on a storage won't be handled correctly anymore
after the setting is turned off. The setting is already a fixed
storage setting for directory-based storages, so this is only relevant
for LVM. Could be improved by checking in the backend if there are any
qcow2 images and only allow turning it off if not, but this requires
changes to the on_update_hook() signature. Until then, warn in the
front-end.
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
---
Went with a warning rather than disallowing, so that the limitation
gets visibly communicated to the user.
www/manager6/storage/Base.js | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/www/manager6/storage/Base.js b/www/manager6/storage/Base.js
index 84c08f2c..cf89ef6d 100644
--- a/www/manager6/storage/Base.js
+++ b/www/manager6/storage/Base.js
@@ -90,6 +90,14 @@ Ext.define('PVE.panel.StorageBase', {
});
me.advancedColumnB = me.advancedColumnB || [];
+ if (me.type === 'lvm') {
+ me.advancedColumnB.unshift({
+ xtype: 'displayfield',
+ name: 'external-snapshot-hint-lvm',
+ userCls: 'pmx-hint',
+ value: gettext('Keep Snapshots as Volume-Chain enabled if qcow2 images exist!'),
+ });
+ }
me.advancedColumnB.unshift({
xtype: 'displayfield',
name: 'external-snapshot-hint',
--
2.47.2
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* [pve-devel] applied: [PATCH manager] ui: storage edit: warn about disabling snapshot-as-volume-chain on LVM
2025-08-12 8:28 [pve-devel] [PATCH manager] ui: storage edit: warn about disabling snapshot-as-volume-chain on LVM Fiona Ebner
@ 2025-08-12 10:23 ` Fabian Grünbichler
0 siblings, 0 replies; 2+ messages in thread
From: Fabian Grünbichler @ 2025-08-12 10:23 UTC (permalink / raw)
To: pve-devel, Fiona Ebner
On Tue, 12 Aug 2025 10:28:14 +0200, Fiona Ebner wrote:
> Existing qcow2 volumes on a storage won't be handled correctly anymore
> after the setting is turned off. The setting is already a fixed
> storage setting for directory-based storages, so this is only relevant
> for LVM. Could be improved by checking in the backend if there are any
> qcow2 images and only allow turning it off if not, but this requires
> changes to the on_update_hook() signature. Until then, warn in the
> front-end.
>
> [...]
Applied, thanks!
[1/1] ui: storage edit: warn about disabling snapshot-as-volume-chain on LVM
commit: d77a90c471677fe24957998d779c3e177cc4349e
Best regards,
--
Fabian Grünbichler <f.gruenbichler@proxmox.com>
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-08-12 10:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-12 8:28 [pve-devel] [PATCH manager] ui: storage edit: warn about disabling snapshot-as-volume-chain on LVM Fiona Ebner
2025-08-12 10:23 ` [pve-devel] applied: " Fabian Grünbichler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox