2 Copyright (C) 2010 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>
29 #define DCDB_CPG_GROUP_NAME "pve_dcdb_v1"
30 /* please increase protocol version if you want to stop older nodes */
31 #define DCDB_PROTOCOL_VERSION 1
32 #define DCDB_VERIFY_TIME (60*60)
35 DCDB_MESSAGE_CFS_WRITE
= 1,
36 DCDB_MESSAGE_CFS_MKDIR
= 2,
37 DCDB_MESSAGE_CFS_DELETE
= 3,
38 DCDB_MESSAGE_CFS_RENAME
= 4,
39 DCDB_MESSAGE_CFS_CREATE
= 5,
40 DCDB_MESSAGE_CFS_MTIME
= 6,
41 DCDB_MESSAGE_CFS_UNLOCK_REQUEST
= 7,
42 DCDB_MESSAGE_CFS_UNLOCK
= 8,
45 #define DCDB_VALID_MESSAGE_TYPE(mt) (mt >= DCDB_MESSAGE_CFS_WRITE && mt <= DCDB_MESSAGE_CFS_UNLOCK)
47 dfsm_t
*dcdb_new(memdb_t
*memdb
);
49 void dcdb_sync_cluster_conf(
51 gboolean notify_cman
);
53 int dcdb_send_fuse_message(
55 dcdb_message_t msg_type
,
67 const guchar csum
[32],
70 #endif /* _PVE_DCDB_H_ */