From 767ffa8e28c9cd3dacf326e8af36c374ee4f6e07 Mon Sep 17 00:00:00 2001 From: Markus Frank Date: Fri, 4 Apr 2025 18:08:36 +0200 Subject: [PATCH] add mapping/directory.cfg for resource mapping to observed files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add it to both the perl side (PVE/Cluster.pm) and pmxcfs side (status.c). This config file will be used to map directory IDs to paths on selected hosts. Signed-off-by: Markus Frank Reviewed-by: Fiona Ebner Reviewed-by: Laurențiu Leahu-Vlăducu Tested-by: Laurențiu Leahu-Vlăducu Tested-by: Daniel Kral Tested-by: Lukas Wagner [TL: s/dir/directory/ for verbosity] Signed-off-by: Thomas Lamprecht --- src/PVE/Cluster.pm | 1 + src/pmxcfs/status.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/PVE/Cluster.pm b/src/PVE/Cluster.pm index a325b67..0c78e65 100644 --- a/src/PVE/Cluster.pm +++ b/src/PVE/Cluster.pm @@ -86,6 +86,7 @@ my $observed = { 'sdn/.running-config' => 1, 'virtual-guest/cpu-models.conf' => 1, 'virtual-guest/profiles.cfg' => 1, + 'mapping/directory.cfg' => 1, 'mapping/pci.cfg' => 1, 'mapping/usb.cfg' => 1, }; diff --git a/src/pmxcfs/status.c b/src/pmxcfs/status.c index 5844928..cda3921 100644 --- a/src/pmxcfs/status.c +++ b/src/pmxcfs/status.c @@ -116,6 +116,7 @@ static memdb_change_t memdb_change_array[] = { { .path = "virtual-guest/cpu-models.conf" }, { .path = "virtual-guest/profiles.cfg" }, { .path = "firewall/cluster.fw" }, + { .path = "mapping/directory.cfg" }, { .path = "mapping/pci.cfg" }, { .path = "mapping/usb.cfg" }, };