fix bug #664
Catch the error, if the dataset doesn't exists. If it will not catched, you can't remove a VM.
This commit is contained in:
committed by
Dietmar Maurer
parent
205e81339f
commit
27ff0e99e2
@ -338,6 +338,9 @@ sub zfs_delete_zvol {
|
||||
if ($err = $@) {
|
||||
if ($err =~ m/^zfs error:(.*): dataset is busy.*/) {
|
||||
sleep(1);
|
||||
} elsif ($err =~ m/^zfs error:.*: dataset does not exist.*$/) {
|
||||
$err = undef;
|
||||
last;
|
||||
} else {
|
||||
die $err;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user