4 * Copyright (C) 2004-2009 Red Hat, Inc. All rights reserved.
6 * This copyrighted material is made available to anyone wishing to use,
7 * modify, copy, or redistribute it subject to the terms and conditions
8 * of the GNU Lesser General Public License v.2.1.
10 * You should have received a copy of the GNU Lesser General Public License
11 * along with this program; if not, write to the Free Software Foundation,
12 * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
14 #ifndef __CLUSTER_LOG_CLUSTER_DOT_H__
15 #define __CLUSTER_LOG_CLUSTER_DOT_H__
17 #include "libdevmapper.h"
18 #include "dm-log-userspace.h"
21 * There is other information in addition to what can
22 * be found in the dm_ulog_request structure that we
23 * need for processing. 'clog_request' is the wrapping
24 * structure we use to make the additional fields
31 * 'originator' is the machine from which the requests
37 * 'pit_server' is the "point-in-time" server for the
38 * request. (I.e. The machine that was the server at
39 * the time the request was issued - only important during
45 * The request from the kernel that is being processed
47 struct dm_ulog_request u_rq
;
50 int init_cluster(void);
51 void cleanup_cluster(void);
52 void cluster_debug(void);
54 int create_cluster_cpg(char *uuid
, uint64_t luid
);
55 int destroy_cluster_cpg(char *uuid
);
57 int cluster_send(struct clog_request
*rq
);
59 #endif /* __CLUSTER_LOG_CLUSTER_DOT_H__ */