summaryrefslogtreecommitdiffstats
path: root/daemons/clvmd/lvm-functions.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2010-06-21 15:56:57 +0000
committerAlasdair Kergon <agk@redhat.com>2010-06-21 15:56:57 +0000
commitb4ee00356b5adfe105605b8cab9667e216210bfe (patch)
treea5a2be86b2ffb1b4220bb014f58451abd659d0a0 /daemons/clvmd/lvm-functions.c
parentaec39dcc34b5d6c7b94d084e17957031f512e594 (diff)
downloadlvm2-b4ee00356b5adfe105605b8cab9667e216210bfe.tar.gz
lvm2-b4ee00356b5adfe105605b8cab9667e216210bfe.tar.xz
lvm2-b4ee00356b5adfe105605b8cab9667e216210bfe.zip
Various cleanups following recent commits.
Diffstat (limited to 'daemons/clvmd/lvm-functions.c')
-rw-r--r--daemons/clvmd/lvm-functions.c26
1 files changed, 3 insertions, 23 deletions
diff --git a/daemons/clvmd/lvm-functions.c b/daemons/clvmd/lvm-functions.c
index ff44a0ff..81287284 100644
--- a/daemons/clvmd/lvm-functions.c
+++ b/daemons/clvmd/lvm-functions.c
@@ -13,28 +13,9 @@
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#define _GNU_SOURCE
-#define _FILE_OFFSET_BITS 64
+#include "clvmd-common.h"
-#include "configure.h"
#include <pthread.h>
-#include <sys/types.h>
-#include <sys/utsname.h>
-#include <sys/ioctl.h>
-#include <sys/socket.h>
-#include <sys/stat.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <stdint.h>
-#include <fcntl.h>
-#include <string.h>
-#include <stddef.h>
-#include <stdint.h>
-#include <unistd.h>
-#include <errno.h>
-#include <syslog.h>
-#include <assert.h>
-#include "libdevmapper.h"
#include "lvm-types.h"
#include "clvm.h"
@@ -45,14 +26,13 @@
/* LVM2 headers */
#include "toolcontext.h"
#include "lvmcache.h"
-#include "lvm-logging.h"
#include "lvm-globals.h"
#include "activate.h"
-#include "locking.h"
#include "archiver.h"
-#include "defaults.h"
#include "memlock.h"
+#include <syslog.h>
+
static struct cmd_context *cmd = NULL;
static struct dm_hash_table *lv_hash = NULL;
static pthread_mutex_t lv_hash_lock;