[pve-devel] [PATCH pve-cluster v2] add 'ha/fence.cfg' to observed files

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Nov 18 10:15:49 CET 2015


fence.cfg will be used by the PVE HA manager for external fence
device configuration, this allows us to use cfs_read_file and
cfs_write_file methods.

Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---

changes since v1:
* add the file also to pmxcfs


 data/PVE/Cluster.pm | 1 +
 data/src/status.c   | 1 +
 2 files changed, 2 insertions(+)

diff --git a/data/PVE/Cluster.pm b/data/PVE/Cluster.pm
index 5575e15..0085316 100644
--- a/data/PVE/Cluster.pm
+++ b/data/PVE/Cluster.pm
@@ -72,6 +72,7 @@ my $observed = {
     'ha/manager_status' => 1,
     'ha/resources.cfg' => 1,
     'ha/groups.cfg' => 1,
+    'ha/fence.cfg' => 1,
     'status.cfg' => 1,
 };
 
diff --git a/data/src/status.c b/data/src/status.c
index a7a495c..cb6b6d1 100644
--- a/data/src/status.c
+++ b/data/src/status.c
@@ -87,6 +87,7 @@ static memdb_change_t memdb_change_array[] = {
 	{ .path = "ha/manager_status" },
 	{ .path = "ha/resources.cfg" },
 	{ .path = "ha/groups.cfg" },
+	{ .path = "ha/fence.cfg" },
 	{ .path = "status.cfg" },
 };
 
-- 
2.1.4





More information about the pve-devel mailing list