Skip to content

Fix issue when destroying snapshot of top-level dataset

Pre-release
Pre-release
Compare
Choose a tag to compare
@Jehops Jehops released this 18 Aug 17:37
· 76 commits to master since this release
32e6e25

To extract the pool name from a snapshot name, a parameter expansion was removing everything after '/'. However, the top-level dataset contains no '/' in its name (its name is the same as the pool's name). This means the entire snapshot name was being incorrectly returned for the name of the pool.

This release fixes the parameter expansion to handle the case when the dataset name contains no '/'.

This issue was reported by Michael Wayne.