HomeFreeBSD

ZTS: Fix reservation_001_pos

Description

ZTS: Fix reservation_001_pos

It's possible for an unrelated process, like blkid, to have the
volume open when 'zfs destroy' is run. Switch the cleanup function
to the destroy_dataset() helper which handles this case by retrying
the destroy when the dataset is busy.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #7796

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Aug 17 2018, 5:01 PM
GitHub <noreply@github.com>Committed on Aug 17 2018, 5:01 PM
Parents
rG4338c5c06fbe: Fix traverse_impl() kmem leak
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG802715b74a23: ZTS: Fix reservation_001_pos (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Aug 17 2018, 5:01 PM