all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [RFC storage 0/2] close #6669: plugin api: introduce on_update_hook_full() method
@ 2025-10-08 15:11 Fiona Ebner
  2025-10-08 15:11 ` [pve-devel] [RFC storage 1/2] " Fiona Ebner
  2025-10-08 15:11 ` [pve-devel] [RFC storage 2/2] lvm plugin: disallow disabling 'snapshot-as-volume-chain' while a qcow2 image exists Fiona Ebner
  0 siblings, 2 replies; 3+ messages in thread
From: Fiona Ebner @ 2025-10-08 15:11 UTC (permalink / raw)
  To: pve-devel

The original on_update_hook() method is limited, because only the
updated properties and values are passed in. Introduce a new
on_update_hook_full() method which also receives the current storage
configuration and the list of which properties are to be deleted. This
allows detecting and reacting to all changes and knowing how values
changed.

The first user of the new method is the LVM plugin to disallow
disabling 'snapshot-as-volume-chain' while a qcow2 image exists.

pve-storage:

Fiona Ebner (2):
  close #6669: plugin api: introduce on_update_hook_full() method
  lvm plugin: disallow disabling 'snapshot-as-volume-chain' while a
    qcow2 image exists

 ApiChangeLog                   | 13 +++++++++++++
 src/PVE/API2/Storage/Config.pm | 18 +++++++++++++++---
 src/PVE/Storage.pm             |  4 ++--
 src/PVE/Storage/LVMPlugin.pm   | 19 +++++++++++++++++++
 src/PVE/Storage/Plugin.pm      | 33 +++++++++++++++++++++++++++++++++
 5 files changed, 82 insertions(+), 5 deletions(-)


Summary over all repositories:
  5 files changed, 82 insertions(+), 5 deletions(-)

-- 
Generated by git-murpp 0.5.0


_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-10-08 15:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-08 15:11 [pve-devel] [RFC storage 0/2] close #6669: plugin api: introduce on_update_hook_full() method Fiona Ebner
2025-10-08 15:11 ` [pve-devel] [RFC storage 1/2] " Fiona Ebner
2025-10-08 15:11 ` [pve-devel] [RFC storage 2/2] lvm plugin: disallow disabling 'snapshot-as-volume-chain' while a qcow2 image exists Fiona Ebner

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