]>
git.proxmox.com Git - pve-cluster.git/blob - data/src/status.h
bc6ecfb126e9a4b51c2024539562de88298773cc
2 Copyright (C) 2010 - 2020 Proxmox Server Solutions GmbH
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU Affero General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Affero General Public License for more details.
14 You should have received a copy of the GNU Affero General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 Author: Dietmar Maurer <dietmar@proxmox.com>
21 #ifndef _PVE_STATUS_H_
22 #define _PVE_STATUS_H_
31 #define VMTYPE_OPENVZ 2
34 #define CFS_MAX_STATUS_SIZE (32*1024)
36 typedef struct cfs_clnode cfs_clnode_t
;
37 typedef struct cfs_clinfo cfs_clinfo_t
;
40 cfs_status_init(void);
43 cfs_status_cleanup(void);
46 cfs_status_dfsm_new(void);
49 cfs_cluster_log(clog_entry_t
*entry
);
58 cfs_rrd_dump(GString
*str
);
67 cfs_status_set_clinfo(
68 cfs_clinfo_t
*clinfo
);
71 cfs_status_set_vmlist(
82 cfs_clnode_t
*clnode
);
86 const char *cluster_name
,
87 uint32_t cman_version
);
91 cfs_clinfo_t
*clinfo
);
96 cfs_clnode_t
*clnode
);
104 cfs_is_quorate(void);
107 vmlist_hash_new(void);
110 vmlist_hash_insert_vm(
114 const char *nodename
,
121 const char *nodename
);
132 vmlist_different_vm_exists(
135 const char *nodename
);
138 record_memdb_change(const char *path
);
141 record_memdb_reload(void);
145 cfs_create_status_msg(
147 const char *nodename
,
151 cfs_create_version_msg(
155 cfs_create_vmlist_msg(
159 cfs_create_memberlist_msg(
163 cfs_create_guest_conf_property_msg(GString
*str
, memdb_t
*memdb
, const char *prop
, uint32_t vmid
);
165 #endif /* _PVE_STATUS_H_ */