summaryrefslogtreecommitdiffstats
path: root/daemons/lvmetad/lvmetad-core.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2012-02-28 18:35:04 +0000
committerAlasdair Kergon <agk@redhat.com>2012-02-28 18:35:04 +0000
commit7126d8c21b2942f3bda2b64bb6d2195e71ba031f (patch)
treee47a266a7a1dd4ae64a6bbabe68e33168f2b8089 /daemons/lvmetad/lvmetad-core.c
parente980d543710eaebf07c6b5442647463eab47e9d1 (diff)
downloadlvm2-7126d8c21b2942f3bda2b64bb6d2195e71ba031f.tar.gz
lvm2-7126d8c21b2942f3bda2b64bb6d2195e71ba031f.tar.xz
lvm2-7126d8c21b2942f3bda2b64bb6d2195e71ba031f.zip
Reflect new file locations, include file updates etc.
Diffstat (limited to 'daemons/lvmetad/lvmetad-core.c')
-rw-r--r--daemons/lvmetad/lvmetad-core.c25
1 files changed, 20 insertions, 5 deletions
diff --git a/daemons/lvmetad/lvmetad-core.c b/daemons/lvmetad/lvmetad-core.c
index f53478b6..f3fc2d05 100644
--- a/daemons/lvmetad/lvmetad-core.c
+++ b/daemons/lvmetad/lvmetad-core.c
@@ -1,16 +1,29 @@
-#define _GNU_SOURCE
+/*
+ * Copyright (C) 2012 Red Hat, Inc.
+ *
+ * This file is part of LVM2.
+ *
+ * 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
+ */
+
#define _XOPEN_SOURCE 500 /* pthread */
+#include "configure.h"
+#include "daemon-shared.h"
+#include "daemon-server.h"
+
#include <assert.h>
#include <pthread.h>
#include <malloc.h>
#include <stdint.h>
#include <unistd.h>
-#include "configure.h"
-#include "libdevmapper.h"
-#include "daemon-server.h"
-
typedef struct {
struct dm_hash_table *pvid_to_pvmeta;
struct dm_hash_table *device_to_pvid; /* shares locks with above */
@@ -196,6 +209,7 @@ static struct dm_config_node *make_text_node(struct dm_config_tree *cft,
return cn;
}
+#if 0
static struct dm_config_node *make_int_node(struct dm_config_tree *cft,
const char *key,
int64_t value,
@@ -208,6 +222,7 @@ static struct dm_config_node *make_int_node(struct dm_config_tree *cft,
cn->v->v.i = value;
return cn;
}
+#endif
static void filter_metadata(struct dm_config_node *vg) {
struct dm_config_node *pv = pvs(vg);