From 4f88a29c8f8f363dc50485a549b0e8c63a702c2d Mon Sep 17 00:00:00 2001 From: SimonFair <39065407+SimonFair@users.noreply.github.com> Date: Thu, 23 Nov 2023 19:39:49 +0000 Subject: [PATCH] Add override path support bug fix for metadata on revert. --- .../plugins/dynamix.vm.manager/include/VMMachines.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/emhttp/plugins/dynamix.vm.manager/include/VMMachines.php b/emhttp/plugins/dynamix.vm.manager/include/VMMachines.php index fdaa51e82..e50f8eadd 100644 --- a/emhttp/plugins/dynamix.vm.manager/include/VMMachines.php +++ b/emhttp/plugins/dynamix.vm.manager/include/VMMachines.php @@ -185,7 +185,7 @@ foreach ($vms as $vm) { $changemedia = "getisoimageboth(\"{$uuid}\",\"hda\",\"{$cdbus}\",\"{$cdfile}\",\"hdb\",\"{$cdbus2}\",\"{$cdfile2}\")"; $title = _('Select ISO image'); - $cdstr = $cdromcount." / 2 "; + $cdstr = $cdromcount." / 2 "; echo ""; echo "$image$vm
"._($status)." $snapshotstcount
"; echo "$desc"; @@ -200,7 +200,7 @@ foreach ($vms as $vm) { echo "" : "' style='display:none'>"); echo ""; echo ""; - echo ""; + echo ""; echo ""; /* Display VM disks */ @@ -213,7 +213,9 @@ foreach ($vms as $vm) { $boot= $arrDisk["boot order"]; $serial = $arrDisk["serial"]; if ($boot < 1) $boot = _('Not set'); - echo ""; + $reallocation = trim(shell_exec("getfattr --absolute-names --only-values -n system.LOCATION ".escapeshellarg($disk)." 2>/dev/null")); + if (!empty($reallocation)) $reallocationstr = "($reallocation)"; else $reallocationstr = ""; + echo ""; if ($state == 'shutoff') { echo ""; + echo ""; } } echo "";
",_('Disk devices'),"",_('Serial'),"",_('Bus'),"",_('Capacity'),"",_('Allocation'),"Boot Order
",_('Disk devices/Volume'),"",_('Serial'),"",_('Bus'),"",_('Capacity'),"",_('Allocation'),"Boot Order
$disk$serial$bus
$disk $reallocationstr$serial$bus"; echo "
"; @@ -248,7 +250,7 @@ foreach ($vms as $vm) { $title = _('Insert CD'); $changemedia = "changemedia(\"{$uuid}\",\"{$dev}\",\"{$bus}\",\"--select\")"; $disk = _("No CD image inserted into drive"); - echo "
$disk $bus$capacity$allocation$boot
$disk $bus$capacity$allocation$boot