]> git.proxmox.com Git - pve-cluster.git/commitdiff
add cfg files for resource mapping
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 25 May 2023 10:17:43 +0000 (12:17 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 5 Jun 2023 09:09:19 +0000 (11:09 +0200)
There might be more mapping types in the future, but for now it's:

- mapping/pci.cfg
- mapping/usb.cfg

Add them to both, the perl side (PVE/Cluster.pm) and pmxcfs side
(status.c).

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
 [ TL: Dominik, Fabian and I decided to do a s/resource/mapping/
   rename on the cfg & API paths and privileges, so ammend that ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/Cluster.pm
src/pmxcfs/status.c

index efca58fb4c35ac4c24b15de5cb67bcad11196fda..ff777ba00bf0c240eb5fd88ef0b4a5e5b32ae05b 100644 (file)
@@ -78,6 +78,8 @@ my $observed = {
     'sdn/dns.cfg' => 1,
     'sdn/.running-config' => 1,
     'virtual-guest/cpu-models.conf' => 1,
+    'mapping/pci.cfg' => 1,
+    'mapping/usb.cfg' => 1,
 };
 
 sub prepare_observed_file_basedirs {
index 8d629860cd27948aaf133a3bba0a6230527f221b..1f29b076720daf66b54ddc22582744a55a8df051 100644 (file)
@@ -108,6 +108,8 @@ static memdb_change_t memdb_change_array[] = {
        { .path = "sdn/.running-config" },
        { .path = "virtual-guest/cpu-models.conf" },
        { .path = "firewall/cluster.fw" },
+       { .path = "mapping/pci.cfg" },
+       { .path = "mapping/usb.cfg" },
 };
 
 static GMutex mutex;