[pve-devel] [PATCH cluster 2/2] add explaining comment for observed files

Dominik Csapak d.csapak at proxmox.com
Wed Dec 19 11:24:38 CET 2018


Without knowing that those are also defined elsewhere, the code can be
easily confusing.

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 data/PVE/Cluster.pm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/data/PVE/Cluster.pm b/data/PVE/Cluster.pm
index f96de2f..ce4ae7c 100644
--- a/data/PVE/Cluster.pm
+++ b/data/PVE/Cluster.pm
@@ -67,6 +67,9 @@ my $rootsshauthkeys = "/root/.ssh/authorized_keys";
 my $rootsshauthkeysbackup = "${rootsshauthkeys}.org";
 my $rootsshconfig = "/root/.ssh/config";
 
+# also defined in status.c
+# this is necessary to be sure that we have a version of that file
+# when using read/write, so that we can update the cache accordingly
 my $observed = {
     'vzdump.cron' => 1,
     'storage.cfg' => 1,
-- 
2.11.0





More information about the pve-devel mailing list