summaryrefslogtreecommitdiff
path: root/device_mapper
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2018-12-19 12:54:14 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2018-12-20 13:26:55 +0100
commit9785e40b8d52fd87d7c451ed838f450aee41ba8d (patch)
tree01421cb350582e501d29085c6c6e7728408de401 /device_mapper
parentf05104af76e26f0757df1500540e767dd889ae71 (diff)
downloadlvm2-9785e40b8d52fd87d7c451ed838f450aee41ba8d.tar.gz
dmeventd: resolve compilation of vdo status parsing
A bit of chicken & egg problem - dmeventd needs to use old libdm library. VDO is only part of new device_mapper internal library. So include directly source file for parsing status - this fixes usability problem of VDO plugin introduced with previous Makefile reshaping patchset. NOTE: source file needs to be keep then compilable in both environments. Also add missing copyright header.
Diffstat (limited to 'device_mapper')
-rw-r--r--device_mapper/vdo/status.c22
1 files changed, 20 insertions, 2 deletions
diff --git a/device_mapper/vdo/status.c b/device_mapper/vdo/status.c
index 40e69ba2f..a34029def 100644
--- a/device_mapper/vdo/status.c
+++ b/device_mapper/vdo/status.c
@@ -1,8 +1,26 @@
+/*
+ * Copyright (C) 2018 Red Hat, Inc. All rights reserved.
+ *
+ * This file is part of the device-mapper userspace tools.
+ *
+ * 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+/* Note: this object is also used by VDO dmeventd plugin for parsing status */
+/* File could be included by VDO plugin and can use original libdm library */
+#ifndef LIB_DMEVENT_H
#include "configure.h"
-#include "target.h"
-
// For DM_ARRAY_SIZE!
#include "device_mapper/all.h"
+#endif
+
+#include "device_mapper/vdo/target.h"
#include "base/memory/zalloc.h"
#include <ctype.h>