aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2021-10-25 14:13:50 -0700
committerGitHub <[email protected]>2021-10-25 15:13:50 -0600
commit90b77a0364a44ec568aa984558dea9901867653d (patch)
tree9f4eab8c33d2a4ed30a63f9fa11a3110d2658298 /module/zfs
parent731fbb5d22a6f6cbf6b284d5aa8e65370a3b8045 (diff)
ZTS: Standardize use of destroy_dataset in cleanup
When cleaning up a test case standardize on using the convention: datasetexists $ds && destroy_dataset $ds <flags> By using 'destroy_dataset' instead of 'log_must zfs destroy' we ensure that the destroy is retried in the event that a ZFS volume is busy. This helps ensures ensure tests are fully cleaned up and prevents false positive test failures on Linux. Note that all of the tests which used 'zfs destroy' in cleanup have been updated even if they don't use volumes. This was done to clearly establish the expected convention. Reviewed-by: Rich Ercolani <[email protected]> Reviewed-by: George Melikov <[email protected]> Reviewed-by: John Kennedy <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #12663
Diffstat (limited to 'module/zfs')
0 files changed, 0 insertions, 0 deletions