ZFS fixes

This commit is contained in:
SimonFair
2024-08-29 17:45:00 +01:00
parent 506270e413
commit 00b1f77742
4 changed files with 9 additions and 6 deletions
@@ -2003,8 +2003,10 @@
if (is_file($disk)) unlink($disk);
if (is_file($cfg)) unlink($cfg);
if (is_file($xml)) unlink($xml);
#if (is_dir($dir) && $this->is_dir_empty($dir)) rmdir($dir);
if (is_dir($dir) && $this->is_dir_empty($dir)) my_rmdir($dir);
if (is_dir($dir) && $this->is_dir_empty($dir)) {
$error = my_rmdir($dir);
qemu_log("$domain","delete empty $dir $error");
}
}
return true;