]> granicus.if.org Git - zfs/commit
ZTS: Fix EBUSY volume destroy failures
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 31 Aug 2018 22:30:44 +0000 (15:30 -0700)
committerGitHub <noreply@github.com>
Fri, 31 Aug 2018 22:30:44 +0000 (15:30 -0700)
commitbb91178e60df553071ce2e18b0067ef703f7b583
tree96e1c6c75c0fc58f72bb54b6cdbc11a376081c31
parente927fc8a522e1c0db89955cc555841aa23bbd634
ZTS: Fix EBUSY volume destroy failures

It's possible for an unrelated process, like blkid, to have the
volume open when 'zfs destroy' is run.  Switch the cleanup functions
to the destroy_dataset() helper which handles this case by retrying
the destroy when the dataset is busy.  This was done not only for
volumes but also for file systems for consistency.

Reviewed-by: Richard Elling <Richard.Elling@RichardElling.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #7854
26 files changed:
tests/test-runner/bin/zts-report.py
tests/zfs-tests/tests/functional/channel_program/synctask_core/tst.destroy_fs.ksh
tests/zfs-tests/tests/functional/channel_program/synctask_core/tst.destroy_snap.ksh
tests/zfs-tests/tests/functional/channel_program/synctask_core/tst.get_count_and_limit.ksh
tests/zfs-tests/tests/functional/channel_program/synctask_core/tst.get_index_props.ksh
tests/zfs-tests/tests/functional/channel_program/synctask_core/tst.get_mountpoint.ksh
tests/zfs-tests/tests/functional/channel_program/synctask_core/tst.get_neg.ksh
tests/zfs-tests/tests/functional/channel_program/synctask_core/tst.get_number_props.ksh
tests/zfs-tests/tests/functional/channel_program/synctask_core/tst.get_type.ksh
tests/zfs-tests/tests/functional/channel_program/synctask_core/tst.get_userquota.ksh
tests/zfs-tests/tests/functional/channel_program/synctask_core/tst.get_written.ksh
tests/zfs-tests/tests/functional/channel_program/synctask_core/tst.list_children.ksh
tests/zfs-tests/tests/functional/channel_program/synctask_core/tst.list_clones.ksh
tests/zfs-tests/tests/functional/channel_program/synctask_core/tst.list_snapshots.ksh
tests/zfs-tests/tests/functional/channel_program/synctask_core/tst.list_system_props.ksh
tests/zfs-tests/tests/functional/channel_program/synctask_core/tst.promote_conflict.ksh
tests/zfs-tests/tests/functional/channel_program/synctask_core/tst.promote_multiple.ksh
tests/zfs-tests/tests/functional/channel_program/synctask_core/tst.promote_simple.ksh
tests/zfs-tests/tests/functional/channel_program/synctask_core/tst.rollback_mult.ksh
tests/zfs-tests/tests/functional/channel_program/synctask_core/tst.rollback_one.ksh
tests/zfs-tests/tests/functional/channel_program/synctask_core/tst.snapshot_destroy.ksh
tests/zfs-tests/tests/functional/channel_program/synctask_core/tst.snapshot_neg.ksh
tests/zfs-tests/tests/functional/channel_program/synctask_core/tst.snapshot_recursive.ksh
tests/zfs-tests/tests/functional/channel_program/synctask_core/tst.snapshot_simple.ksh
tests/zfs-tests/tests/functional/cli_root/zfs_create/zfs_create_002_pos.ksh
tests/zfs-tests/tests/functional/cli_root/zfs_receive/receive-o-x_props_override.ksh