freenas-proxmox/perl5/PVE
Kevin Adams 415c2a250b fix: unmap targetextent before extent delete in free_image (#259)
When a VM has multiple disks on the same per-VM target, migrating one
disk while the VM is running leaves the target in use for the other
disks. TrueNAS refuses to delete an extent associated with an in-use
target even with force=true.

Fix: delete the targetextent (LUN mapping) first, then delete the
extent. Removing the mapping severs this disk's association without
touching the active session or other LUNs on the same target.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-24 16:37:33 -04:00
..
Storage/Custom fix: unmap targetextent before extent delete in free_image (#259) 2026-05-24 16:37:33 -04:00