freenas-proxmox/perl5/PVE/Storage/LunCmd
Kevin Adams ec4085b244 fix: full eval-based rollback on LUN creation failure, add test trigger (#239)
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>
2026-05-20 00:00:55 -04:00
..
FreeNAS.pm fix: full eval-based rollback on LUN creation failure, add test trigger (#239) 2026-05-20 00:00:55 -04:00