]> 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)
committerTony Hutter <hutter2@llnl.gov>
Tue, 8 May 2018 00:19:56 +0000 (17:19 -0700)
commit6356d50e673d0718fe3ceb1ec9fca17eeab0c189
tree8e210c1ef7a2a1e52213dc0338169ec277b05a9c
parentbd69ae3b537ac4e796c53b0c3d6efdc92d652da6
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