Hacker News new | ask | show | jobs
by hda111 697 days ago
How to undo a zfs destroy?
2 comments

Return 0, but don’t do anything yet. Fire a cron with an N-minute sleep that destroys the FS on expiry. Also, rewrite various ZFS tooling to lie about the consumed space, and confound the user with random errors if they try to use the still-allocated space.

/s but I sincerely hope it isn’t necessary

zfs create. All better.