diff options
author | Dave Wysochanski <dwysocha@redhat.com> | 2009-09-03 17:11:53 -0400 |
---|---|---|
committer | Dave Wysochanski <dwysocha@redhat.com> | 2009-09-04 20:44:58 +0200 |
commit | 2433909e20c6716b4d1d4963bcfad57a20ea30ae (patch) | |
tree | f069a4748bc519d7c76fb714423b663155bd2ef2 /daemons/cmirrord/logging.c | |
parent | 5e9891477aaf4cd6952f2d6914506031dd1ea93a (diff) | |
download | lvm2-2433909e20c6716b4d1d4963bcfad57a20ea30ae.tar.gz lvm2-2433909e20c6716b4d1d4963bcfad57a20ea30ae.tar.xz lvm2-2433909e20c6716b4d1d4963bcfad57a20ea30ae.zip |
Add daemons/cmirrord files to git - somehow got messed up with cvs rename.
When clogd was renamed to cmirrord, somehow git got the remove of the old
files but not the add of the new files. This patch adds the new files.
Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
Diffstat (limited to 'daemons/cmirrord/logging.c')
-rw-r--r-- | daemons/cmirrord/logging.c | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/daemons/cmirrord/logging.c b/daemons/cmirrord/logging.c new file mode 100644 index 00000000..e9a1d4af --- /dev/null +++ b/daemons/cmirrord/logging.c @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2004-2009 Red Hat, Inc. All rights reserved. + * + * This copyrighted material is made available to anyone wishing to use, + * modify, copy, or redistribute it subject to the terms and conditions + * of the GNU Lesser General Public License v.2.1. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ +#include <stdio.h> +#include <syslog.h> + +char *__rq_types_off_by_one[] = { + "DM_ULOG_CTR", + "DM_ULOG_DTR", + "DM_ULOG_PRESUSPEND", + "DM_ULOG_POSTSUSPEND", + "DM_ULOG_RESUME", + "DM_ULOG_GET_REGION_SIZE", + "DM_ULOG_IS_CLEAN", + "DM_ULOG_IN_SYNC", + "DM_ULOG_FLUSH", + "DM_ULOG_MARK_REGION", + "DM_ULOG_CLEAR_REGION", + "DM_ULOG_GET_RESYNC_WORK", + "DM_ULOG_SET_REGION_SYNC", + "DM_ULOG_GET_SYNC_COUNT", + "DM_ULOG_STATUS_INFO", + "DM_ULOG_STATUS_TABLE", + "DM_ULOG_IS_REMOTE_RECOVERING", + NULL +}; + +int log_tabbing = 0; +int log_is_open = 0; + +/* + * Variables for various conditional logging + */ +#ifdef MEMB +int log_membership_change = 1; +#else +int log_membership_change = 0; +#endif + +#ifdef CKPT +int log_checkpoint = 1; +#else +int log_checkpoint = 0; +#endif + +#ifdef RESEND +int log_resend_requests = 1; +#else +int log_resend_requests = 0; +#endif |