Open gahr opened 8 months ago
I think this should be considered a bug fix rather than an enhancement. A likely consequence of operating without this protection is the loss of files within the mounted file system. That's a very bad outcome and not something a user would expect or think to guard against externally.
@gahr in your PR, the message comes after the dataset has been destroyed if it's on ZFS. If we are going to have that warning, it should come earlier so the user can check mounts and try to destroy again.
Good point. I don't use ZFS myself so I can't easily test any changes in that area. Would you please improve my PR in that direction?
Fixes #662