[pve-devel] [PATCH WIP cluster] hosts: add /etc/pve/hosts to watched files

Leo Nunner l.nunner at proxmox.com
Thu Sep 14 12:03:39 CEST 2023


Signed-off-by: Leo Nunner <l.nunner at proxmox.com>
---
 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 cfa2583..919215d 100644
--- a/src/PVE/Cluster.pm
+++ b/src/PVE/Cluster.pm
@@ -57,6 +57,7 @@ my $observed = {
     'domains.cfg' => 1,
     'notifications.cfg' => 1,
     'priv/notifications.cfg' => 1,
+    'hosts' => 1,
     'priv/shadow.cfg' => 1,
     'priv/tfa.cfg' => 1,
     'priv/token.cfg' => 1,
diff --git a/src/pmxcfs/status.c b/src/pmxcfs/status.c
index c8094ac..9159872 100644
--- a/src/pmxcfs/status.c
+++ b/src/pmxcfs/status.c
@@ -84,6 +84,7 @@ static memdb_change_t memdb_change_array[] = {
 	{ .path = "domains.cfg" },
 	{ .path = "notifications.cfg"},
 	{ .path = "priv/notifications.cfg"},
+	{ .path = "hosts" },
 	{ .path = "priv/shadow.cfg" },
 	{ .path = "priv/acme/plugins.cfg" },
 	{ .path = "priv/tfa.cfg" },
-- 
2.39.2






More information about the pve-devel mailing list