[pve-devel] [RFC storage 0/2] close #6669: plugin api: introduce on_update_hook_full() method

Fiona Ebner f.ebner at proxmox.com
Wed Oct 8 17:11:30 CEST 2025


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




More information about the pve-devel mailing list