]> granicus.if.org Git - zfs/commit
ZTS: Fix reservation_017_pos
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 30 Jul 2018 16:23:45 +0000 (09:23 -0700)
committerGitHub <noreply@github.com>
Mon, 30 Jul 2018 16:23:45 +0000 (09:23 -0700)
commitb719768e35fdd6d4052546338453cee0713a1a3c
treeda23d1e1269b1fb6962e1e69c89de70c1af53942
parent11d0525cbb15a3519df683ec0248b6ac55f9d090
ZTS: Fix reservation_017_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: Giuseppe Di Natale <dinatale2@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #7750
tests/zfs-tests/tests/functional/reservation/reservation_017_pos.sh