]>
git.proxmox.com Git - pve-cluster.git/blob - src/pmxcfs/status.h
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 // FIXME: remove openvz stuff for 7.x
32 #define VMTYPE_OPENVZ 2
35 #define CFS_MAX_STATUS_SIZE (32*1024)
37 typedef struct cfs_clnode cfs_clnode_t
;
38 typedef struct cfs_clinfo cfs_clinfo_t
;
41 cfs_status_init(void);
44 cfs_status_cleanup(void);
47 cfs_status_dfsm_new(void);
50 cfs_cluster_log(clog_entry_t
*entry
);
59 cfs_rrd_dump(GString
*str
);
68 cfs_status_set_clinfo(
69 cfs_clinfo_t
*clinfo
);
72 cfs_status_set_vmlist(
83 cfs_clnode_t
*clnode
);
87 const char *cluster_name
,
88 uint32_t cman_version
);
92 cfs_clinfo_t
*clinfo
);
97 cfs_clnode_t
*clnode
);
105 cfs_is_quorate(void);
108 vmlist_hash_new(void);
111 vmlist_hash_insert_vm(
115 const char *nodename
,
122 const char *nodename
);
133 vmlist_different_vm_exists(
136 const char *nodename
);
139 record_memdb_change(const char *path
);
142 record_memdb_reload(void);
146 cfs_create_status_msg(
148 const char *nodename
,
152 cfs_create_version_msg(
156 cfs_create_vmlist_msg(
160 cfs_create_memberlist_msg(
164 cfs_create_guest_conf_property_msg(GString
*str
, memdb_t
*memdb
, const char *prop
, uint32_t vmid
);
167 cfs_create_guest_conf_properties_msg(GString
*str
, memdb_t
*memdb
, const char **props
, uint8_t num_props
, uint32_t vmid
);
169 #endif /* _PVE_STATUS_H_ */