mirror of
https://github.com/TheGrandWazoo/freenas-proxmox.git
synced 2026-10-17 12:15:31 +02:00
Replace the ad-hoc if/rollback in run_create_lu with an eval block that tracks both extent_id and link_id so either resource is cleaned up if anything fails at any point during creation (#214 only covered the link-creation step). Also adds a FREENAS_TEST_ROLLBACK env-var trigger: set it in pvedaemon's environment to force a rollback after a successful create, allowing verification that orphaned extents and links are removed without needing a real failure condition. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>