]> granicus.if.org Git - zfs/commit
Introduce a destroy_dataset helper
authorGiuseppe Di Natale <dinatale2@users.noreply.github.com>
Tue, 6 Mar 2018 22:54:57 +0000 (14:54 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 6 Mar 2018 22:54:57 +0000 (14:54 -0800)
commitc7b55e71b0c24b836f8de56554cd1b0270c363ff
treeb82638e92b2eac02bada46a60ee3d206917788b5
parent2705ebf0a74f15bb246fb899f19b0ee17aa1c4b5
Introduce a destroy_dataset helper

Datasets can be busy when calling zfs destroy. Introduce
a helper function to destroy datasets and use it to destroy
datasets in zfs_allow_004_pos, zfs_promote_008_pos, and
zfs_destroy_002_pos.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Closes #7224
Closes #7246
Closes #7249
Closes #7267
tests/zfs-tests/include/libtest.shlib
tests/zfs-tests/tests/functional/cli_root/zfs_destroy/zfs_destroy_002_pos.ksh
tests/zfs-tests/tests/functional/cli_root/zfs_promote/zfs_promote_008_pos.ksh
tests/zfs-tests/tests/functional/delegate/delegate_common.kshlib