2 * Copyright (C) 2004-2009 Red Hat, Inc. All rights reserved.
4 * This copyrighted material is made available to anyone wishing to use,
5 * modify, copy, or redistribute it subject to the terms and conditions
6 * of the GNU Lesser General Public License v.2.1.
8 * You should have received a copy of the GNU Lesser General Public License
9 * along with this program; if not, write to the Free Software Foundation,
10 * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
12 #ifndef _LVM_CLOG_FUNCTIONS_H
13 #define _LVM_CLOG_FUNCTIONS_H
15 #include "dm-log-userspace.h"
19 #define LOG_SUSPENDED 2
21 int local_resume(struct dm_ulog_request *rq);
22 int cluster_postsuspend(char *, uint64_t);
24 int do_request(struct clog_request *rq, int server);
25 int push_state(const char *uuid, uint64_t luid,
26 const char *which, char **buf, uint32_t debug_who);
27 int pull_state(const char *uuid, uint64_t luid,
28 const char *which, char *buf, int size);
30 int log_get_state(struct dm_ulog_request *rq);
34 #endif /* _LVM_CLOG_FUNCTIONS_H */