]>
git.proxmox.com Git - pve-cluster.git/blob - data/src/status.h
2 Copyright (C) 2010-2015 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_
30 #define VMTYPE_OPENVZ 2
33 #define CFS_MAX_STATUS_SIZE (32*1024)
35 typedef struct cfs_clnode cfs_clnode_t
;
36 typedef struct cfs_clinfo cfs_clinfo_t
;
39 cfs_status_init(void);
42 cfs_status_cleanup(void);
45 cfs_status_dfsm_new(void);
48 cfs_cluster_log(clog_entry_t
*entry
);
57 cfs_rrd_dump(GString
*str
);
66 cfs_status_set_clinfo(
67 cfs_clinfo_t
*clinfo
);
70 cfs_status_set_vmlist(
81 cfs_clnode_t
*clnode
);
85 const char *cluster_name
,
86 uint32_t cman_version
);
90 cfs_clinfo_t
*clinfo
);
95 cfs_clnode_t
*clnode
);
103 cfs_is_quorate(void);
106 vmlist_hash_new(void);
109 vmlist_hash_insert_vm(
113 const char *nodename
,
120 const char *nodename
);
131 vmlist_different_vm_exists(
134 const char *nodename
);
137 record_memdb_change(const char *path
);
140 record_memdb_reload(void);
144 cfs_create_status_msg(
146 const char *nodename
,
150 cfs_create_version_msg(
154 cfs_create_vmlist_msg(
158 cfs_create_memberlist_msg(
162 #endif /* _PVE_STATUS_H_ */