QCOW2 Fixes

This commit is contained in:
SimonFair
2024-01-05 19:42:06 +00:00
parent 8c5c881237
commit 9c60cc9619
3 changed files with 3 additions and 3 deletions

View File

@@ -70,7 +70,7 @@ foreach ($vms as $vm) {
if (($diskcnt = $lv->get_disk_count($res)) > 0) {
$disks = $diskcnt.' / '.$lv->get_disk_capacity($res);
$fstype = $lv->get_disk_fstype($res);
$diskdesc = 'Current physical size: '.$lv->get_disk_capacity($res, true)."\nDefault snapshot type:$fstype";
$diskdesc = 'Current physical size: '.$lv->get_disk_capacity($res, true)."\nDefault snapshot type: $fstype";
}
$arrValidDiskBuses = getValidDiskBuses();
$vmrcport = $lv->domain_get_vnc_port($res);

View File

@@ -200,7 +200,8 @@
$this->set_folder_nodatacow($path_parts['dirname']);
$strImgPath = $strImgFolder;
$strExt = ($disk['driver'] == 'raw') ? 'img' : $disk['driver'];
$strImgPath = $path_parts['dirname'] . '/vdisk' . $diskid . '.' . $strExt;
}

View File

@@ -1287,7 +1287,6 @@ private static $encoding = 'UTF-8';
'new' => $strPath,
'size' => '',
'driver' => $disk['type'],
'driver' => 'raw',
'dev' => $disk['device'],
'bus' => $disk['bus'],
'boot' => $disk['boot order'],