[pve-devel] [PATCH pve-cluster 1/1] cfs: add 'sdn/.lock' file

Stefan Hanreich s.hanreich at proxmox.com
Fri Feb 28 14:05:44 CET 2025


This file stores a secret if the SDN configuration gets globally
locked.

Signed-off-by: Stefan Hanreich <s.hanreich 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 e0e3ee9..e569d18 100644
--- a/src/PVE/Cluster.pm
+++ b/src/PVE/Cluster.pm
@@ -82,6 +82,7 @@ my $observed = {
     'sdn/mac-cache.json' => 1,
     'sdn/dns.cfg' => 1,
     'sdn/.running-config' => 1,
+    'sdn/.lock' => 1,
     'virtual-guest/cpu-models.conf' => 1,
     'virtual-guest/profiles.cfg' => 1,
     'mapping/pci.cfg' => 1,
diff --git a/src/pmxcfs/status.c b/src/pmxcfs/status.c
index ff5fcc4..dfa8e71 100644
--- a/src/pmxcfs/status.c
+++ b/src/pmxcfs/status.c
@@ -111,6 +111,7 @@ static memdb_change_t memdb_change_array[] = {
 	{ .path = "sdn/pve-ipam-state.json" },
 	{ .path = "sdn/dns.cfg" },
 	{ .path = "sdn/.running-config" },
+	{ .path = "sdn/.lock" },
 	{ .path = "virtual-guest/cpu-models.conf" },
 	{ .path = "virtual-guest/profiles.cfg" },
 	{ .path = "firewall/cluster.fw" },
-- 
2.39.5




More information about the pve-devel mailing list