]> git.proxmox.com Git - mirror_zfs.git/commit
ZTS: Fix reservation_001_pos
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 17 Aug 2018 17:01:47 +0000 (10:01 -0700)
committerGitHub <noreply@github.com>
Fri, 17 Aug 2018 17:01:47 +0000 (10:01 -0700)
commit802715b74a23a58d66028699a99eb141c85b7447
tree0d174a5737beb93f84ccd496a865f226323f2ce7
parent4338c5c06fbe92fdef9a5f0f7e457fae98c94b4d
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
tests/zfs-tests/tests/functional/reservation/reservation_001_pos.sh