Open bdrewery opened 9 years ago
This is tricky. Checking dataset:written would work as long as there's no manual snapshots. Any manual snapshots would make the assumption of trusting written > 0 wrong. It would need to check the written property on the last snapshot created by itself. This could result in a used == 0 case that ends up getting deleted though.
https://www.illumos.org/issues/1645