From 6f5e7b370193cd1c2ecd09cc1e2fcd12234d7a74 Mon Sep 17 00:00:00 2001
From: SimonFair <39065407+SimonFair@users.noreply.github.com>
Date: Sun, 23 Nov 2025 16:35:30 +0000
Subject: [PATCH] Update SysDevs.php
---
emhttp/plugins/dynamix/include/SysDevs.php | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/emhttp/plugins/dynamix/include/SysDevs.php b/emhttp/plugins/dynamix/include/SysDevs.php
index 1ba42a2b5..0732e51bb 100644
--- a/emhttp/plugins/dynamix/include/SysDevs.php
+++ b/emhttp/plugins/dynamix/include/SysDevs.php
@@ -219,7 +219,7 @@ case 't1':
echo ' ';
echo ' ';
- if ($file_numvfs != $num_vfs) echo " ".sprintf(_("Pending action or reboot"))."";
+ if ($file_numvfs != $num_vfs) echo " ".sprintf(_("Pending action or reboot"))."";
echo "";
foreach($sriov[$pciaddress]['vfs'] as $vrf) {
@@ -281,10 +281,16 @@ case 't1':
echo "";
echo ' ';
echo ' ';
- echo ' ';
+ if (isset($sriov_devices_settings[$pciaddress])) {
+ $filevfio = $sriov_devices_settings[$pciaddress]['vfio'] == 1 ? true : false;
+ } else $filevfio = false;
+ $vfiocheck = $vrf['driver'] == "vfio-pci" ? true:false;
+ echo ' ';
if ($vrf['driver'] != "vfio-pci") echo _("Current").": ";
echo $vrf['driver'] == "vfio-pci" ? _("Bound to VFIO") : strtoupper($vrf['mac']);
- echo " ";
+ $vfstatus ="";
+ if ($filevfio != $vfiocheck || (strtoupper($vrf['mac']) != $mac && $mac != null && $vrf['mac']!=null )) $vfstatus = " ".sprintf(_("Pending action or reboot"));
+ echo " $vfstatus";
echo "";
}
}