Skip to content

Commit

Permalink
ZTS: refreserv_005_pos.ksh
Browse files Browse the repository at this point in the history
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 <john.kennedy@delphix.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #10305
  • Loading branch information
behlendorf authored May 8, 2020
1 parent 1cc635a commit d775c86
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit d775c86

Please sign in to comment.