Commit Graph

2 Commits

Author SHA1 Message Date
Faruk Kasumovic 039b070d1a - Prevent double-free failure when the same dataset is closed multiple times
In some cases, copying dataset object, either by passing by value or in
some other pattern can lead to code that will close the same dataset
multiple times (e.g. defer). Or otherwise, code with complicated
handling of dataset cleanup.
Fixes: #30, Closes: #31
2020-09-09 10:22:37 +02:00
Faruk Kasumovic 57e42e824f DestroyPromote - recursive destroy dataset, but don’t destroy any dependent clones, promote them first
- Clones get list of clones (paths) made from given dataset or snapshot
 - Get list of snapshots
 - Find snapshot (search for snapshot by name in children list)
 - IsSnapshot change signature (for simplification, hope it wan’t break lot of code)
2018-12-17 14:01:59 +01:00