diff options
author | Brian Behlendorf <[email protected]> | 2020-05-08 13:50:02 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2020-05-08 13:50:02 -0700 |
commit | d775c86dd4ced233ac0636607706cc5a08bcb923 (patch) | |
tree | 2aea0615e410f5e77245ac1addfdb55c1cae3757 | |
parent | 1cc635a2dd0379181950a1458255ea8ae8b9c1e0 (diff) |
ZTS: refreserv_005_pos.ksh
When recursively destroying the dataset it's possible for the
dataset volume to be open by an unrelated process, like blkid.
Use the destroy_dataset() which will retry when this occurs.
Reviewed-by: John Kennedy <[email protected]>
Reviewed-by: George Melikov <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #10305
-rwxr-xr-x | tests/zfs-tests/tests/functional/refreserv/refreserv_005_pos.ksh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/zfs-tests/tests/functional/refreserv/refreserv_005_pos.ksh b/tests/zfs-tests/tests/functional/refreserv/refreserv_005_pos.ksh index 8c044eca5..1ccc9828d 100755 --- a/tests/zfs-tests/tests/functional/refreserv/refreserv_005_pos.ksh +++ b/tests/zfs-tests/tests/functional/refreserv/refreserv_005_pos.ksh @@ -45,9 +45,9 @@ verify_runnable "global" function cleanup { - log_must zfs destroy -rf $TESTPOOL/$TESTFS - log_must zfs create $TESTPOOL/$TESTFS - log_must zfs set mountpoint=$TESTDIR $TESTPOOL/$TESTFS + destroy_dataset "$fs" "-rf" + log_must zfs create $fs + log_must zfs set mountpoint=$TESTDIR $fs } log_assert "Volume (ref)reservation is not limited by volsize" |