5988ac02504b45eed5df1c98439695a5d561cee2
With a shared LVM storage, parallel imports, which might be done in the context of remote migration, could lead to metadata corruption with unlucky timing, because of missing locking. Add locking around allocation and removal, which are the sections that modify LVM metadata. Note that other plugins suffer from missing locking here as well, but only regarding naming conflicts. Adding locking around the full call to volume_import() would mean locking for much too long. Other plugins could follow the approach here, or there could be a reservation approach like proposed in [0]. [0]: https://lore.proxmox.com/pve-devel/20240403150712.262773-1-h.duerr@proxmox.com/ Signed-off-by: Fiona Ebner <f.ebner@proxmox.com> Tested-by: Friedrich Weber <f.weber@proxmox.com> Link: https://lore.proxmox.com/20251103162330.112603-4-f.ebner@proxmox.com
Description
with PMEM support!
Languages
Perl
99.3%
Makefile
0.6%