]> granicus.if.org Git - zfs/commit
ZTS: Fix zfs_create_013_pos
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 30 Aug 2018 20:38:09 +0000 (13:38 -0700)
committerGitHub <noreply@github.com>
Thu, 30 Aug 2018 20:38:09 +0000 (13:38 -0700)
commit6c6949acae06dc9a31db2e375f13eb7f357651b6
treebc1a231577f39a88cc1107a687c7066cf5a055e3
parentc3bd3fb4ac49705819666055ff1206a9fa3d1b9e
ZTS: Fix zfs_create_013_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 #7847
tests/zfs-tests/tests/functional/cli_root/zfs_create/zfs_create_013_pos.ksh