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_COMMON_H
13 #define _LVM_CLOG_COMMON_H
16 * If there are problems when forking off to become a daemon,
17 * the child will exist with one of these codes. This allows
18 * the parent to know the reason for the failure and print it
19 * to the launching terminal.
21 * #define EXIT_SUCCESS 0 (from stdlib.h)
22 * #define EXIT_FAILURE 1 (from stdlib.h)
24 #define EXIT_LOCKFILE 2
25 #define EXIT_KERNEL_SOCKET 3 /* Failed netlink socket create */
26 #define EXIT_KERNEL_BIND 4
27 #define EXIT_KERNEL_SETSOCKOPT 5
28 #define EXIT_CLUSTER_CKPT_INIT 6 /* Failed to init checkpoint */
29 #define EXIT_QUEUE_NOMEM 7
31 #define DM_ULOG_REQUEST_SIZE 1024
33 #endif /* _LVM_CLOG_COMMON_H */