mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
dmfilemapd: Move to libdm/dm-tools
No longer uses any lvm code.
This commit is contained in:
parent
0524829af6
commit
fededfbbbc
3
configure
vendored
3
configure
vendored
@ -13611,7 +13611,7 @@ _ACEOF
|
|||||||
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
ac_config_files="$ac_config_files Makefile make.tmpl libdm/make.tmpl daemons/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/raid/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile daemons/dmeventd/plugins/thin/Makefile daemons/dmfilemapd/Makefile daemons/lvmdbusd/Makefile daemons/lvmdbusd/lvmdbusd daemons/lvmdbusd/lvmdb.py daemons/lvmdbusd/lvm_shell_proxy.py daemons/lvmdbusd/path.py daemons/lvmetad/Makefile daemons/lvmpolld/Makefile daemons/lvmlockd/Makefile conf/Makefile conf/example.conf conf/lvmlocal.conf conf/command_profile_template.profile conf/metadata_profile_template.profile include/Makefile lib/Makefile include/lvm-version.h libdaemon/Makefile libdaemon/client/Makefile libdaemon/server/Makefile libdm/Makefile libdm/dm-tools/Makefile libdm/libdevmapper.pc man/Makefile po/Makefile scripts/blkdeactivate.sh scripts/blk_availability_init_red_hat scripts/blk_availability_systemd_red_hat.service scripts/cmirrord_init_red_hat scripts/com.redhat.lvmdbus1.service scripts/dm_event_systemd_red_hat.service scripts/dm_event_systemd_red_hat.socket scripts/lvm2_cmirrord_systemd_red_hat.service scripts/lvm2_lvmdbusd_systemd_red_hat.service scripts/lvm2_lvmetad_init_red_hat scripts/lvm2_lvmetad_systemd_red_hat.service scripts/lvm2_lvmetad_systemd_red_hat.socket scripts/lvm2_lvmpolld_init_red_hat scripts/lvm2_lvmpolld_systemd_red_hat.service scripts/lvm2_lvmpolld_systemd_red_hat.socket scripts/lvm2_lvmlockd_systemd_red_hat.service scripts/lvm2_monitoring_init_red_hat scripts/lvm2_monitoring_systemd_red_hat.service scripts/lvm2_pvscan_systemd_red_hat@.service scripts/lvm2_tmpfiles_red_hat.conf scripts/lvmdump.sh scripts/Makefile test/Makefile tools/Makefile udev/Makefile"
|
ac_config_files="$ac_config_files Makefile make.tmpl libdm/make.tmpl daemons/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/raid/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile daemons/dmeventd/plugins/thin/Makefile daemons/lvmdbusd/Makefile daemons/lvmdbusd/lvmdbusd daemons/lvmdbusd/lvmdb.py daemons/lvmdbusd/lvm_shell_proxy.py daemons/lvmdbusd/path.py daemons/lvmetad/Makefile daemons/lvmpolld/Makefile daemons/lvmlockd/Makefile conf/Makefile conf/example.conf conf/lvmlocal.conf conf/command_profile_template.profile conf/metadata_profile_template.profile include/Makefile lib/Makefile include/lvm-version.h libdaemon/Makefile libdaemon/client/Makefile libdaemon/server/Makefile libdm/Makefile libdm/dm-tools/Makefile libdm/libdevmapper.pc man/Makefile po/Makefile scripts/blkdeactivate.sh scripts/blk_availability_init_red_hat scripts/blk_availability_systemd_red_hat.service scripts/cmirrord_init_red_hat scripts/com.redhat.lvmdbus1.service scripts/dm_event_systemd_red_hat.service scripts/dm_event_systemd_red_hat.socket scripts/lvm2_cmirrord_systemd_red_hat.service scripts/lvm2_lvmdbusd_systemd_red_hat.service scripts/lvm2_lvmetad_init_red_hat scripts/lvm2_lvmetad_systemd_red_hat.service scripts/lvm2_lvmetad_systemd_red_hat.socket scripts/lvm2_lvmpolld_init_red_hat scripts/lvm2_lvmpolld_systemd_red_hat.service scripts/lvm2_lvmpolld_systemd_red_hat.socket scripts/lvm2_lvmlockd_systemd_red_hat.service scripts/lvm2_monitoring_init_red_hat scripts/lvm2_monitoring_systemd_red_hat.service scripts/lvm2_pvscan_systemd_red_hat@.service scripts/lvm2_tmpfiles_red_hat.conf scripts/lvmdump.sh scripts/Makefile test/Makefile tools/Makefile udev/Makefile"
|
||||||
|
|
||||||
cat >confcache <<\_ACEOF
|
cat >confcache <<\_ACEOF
|
||||||
# This file is a shell script that caches the results of configure
|
# This file is a shell script that caches the results of configure
|
||||||
@ -14319,7 +14319,6 @@ do
|
|||||||
"daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
|
"daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
|
||||||
"daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
|
"daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
|
||||||
"daemons/dmeventd/plugins/thin/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/thin/Makefile" ;;
|
"daemons/dmeventd/plugins/thin/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/thin/Makefile" ;;
|
||||||
"daemons/dmfilemapd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmfilemapd/Makefile" ;;
|
|
||||||
"daemons/lvmdbusd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/lvmdbusd/Makefile" ;;
|
"daemons/lvmdbusd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/lvmdbusd/Makefile" ;;
|
||||||
"daemons/lvmdbusd/lvmdbusd") CONFIG_FILES="$CONFIG_FILES daemons/lvmdbusd/lvmdbusd" ;;
|
"daemons/lvmdbusd/lvmdbusd") CONFIG_FILES="$CONFIG_FILES daemons/lvmdbusd/lvmdbusd" ;;
|
||||||
"daemons/lvmdbusd/lvmdb.py") CONFIG_FILES="$CONFIG_FILES daemons/lvmdbusd/lvmdb.py" ;;
|
"daemons/lvmdbusd/lvmdb.py") CONFIG_FILES="$CONFIG_FILES daemons/lvmdbusd/lvmdb.py" ;;
|
||||||
|
@ -1764,7 +1764,6 @@ daemons/dmeventd/plugins/raid/Makefile
|
|||||||
daemons/dmeventd/plugins/mirror/Makefile
|
daemons/dmeventd/plugins/mirror/Makefile
|
||||||
daemons/dmeventd/plugins/snapshot/Makefile
|
daemons/dmeventd/plugins/snapshot/Makefile
|
||||||
daemons/dmeventd/plugins/thin/Makefile
|
daemons/dmeventd/plugins/thin/Makefile
|
||||||
daemons/dmfilemapd/Makefile
|
|
||||||
daemons/lvmdbusd/Makefile
|
daemons/lvmdbusd/Makefile
|
||||||
daemons/lvmdbusd/lvmdbusd
|
daemons/lvmdbusd/lvmdbusd
|
||||||
daemons/lvmdbusd/lvmdb.py
|
daemons/lvmdbusd/lvmdb.py
|
||||||
|
@ -44,12 +44,8 @@ ifeq ("@BUILD_LVMDBUSD@", "yes")
|
|||||||
SUBDIRS += lvmdbusd
|
SUBDIRS += lvmdbusd
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ("@BUILD_DMFILEMAPD@", "yes")
|
|
||||||
SUBDIRS += dmfilemapd
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(MAKECMDGOALS),distclean)
|
ifeq ($(MAKECMDGOALS),distclean)
|
||||||
SUBDIRS = cmirrord dmeventd lvmetad lvmpolld lvmlockd lvmdbusd dmfilemapd
|
SUBDIRS = cmirrord dmeventd lvmetad lvmpolld lvmlockd lvmdbusd
|
||||||
endif
|
endif
|
||||||
|
|
||||||
include $(top_builddir)/make.tmpl
|
include $(top_builddir)/make.tmpl
|
||||||
|
1
daemons/dmfilemapd/.gitignore
vendored
1
daemons/dmfilemapd/.gitignore
vendored
@ -1 +0,0 @@
|
|||||||
dmfilemapd
|
|
@ -1,65 +0,0 @@
|
|||||||
#
|
|
||||||
# Copyright (C) 2016 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
|
|
||||||
|
|
||||||
srcdir = @srcdir@
|
|
||||||
top_srcdir = @top_srcdir@
|
|
||||||
top_builddir = @top_builddir@
|
|
||||||
|
|
||||||
SOURCES = dmfilemapd.c
|
|
||||||
|
|
||||||
TARGETS = dmfilemapd
|
|
||||||
|
|
||||||
.PHONY: install_dmfilemapd install_dmfilemapd_static
|
|
||||||
|
|
||||||
INSTALL_DMFILEMAPD_TARGETS = install_dmfilemapd_dynamic
|
|
||||||
|
|
||||||
CLEAN_TARGETS = dmfilemapd.static
|
|
||||||
|
|
||||||
CFLOW_LIST = $(SOURCES)
|
|
||||||
CFLOW_LIST_TARGET = $(LIB_NAME).cflow
|
|
||||||
CFLOW_TARGET = dmfilemapd
|
|
||||||
|
|
||||||
include $(top_builddir)/make.tmpl
|
|
||||||
|
|
||||||
all: device-mapper
|
|
||||||
device-mapper: $(TARGETS)
|
|
||||||
|
|
||||||
CFLAGS_dmfilemapd.o += $(EXTRA_EXEC_CFLAGS)
|
|
||||||
|
|
||||||
dmfilemapd: $(LIB_SHARED) dmfilemapd.o
|
|
||||||
$(CC) $(CFLAGS) $(LDFLAGS) $(EXTRA_EXEC_LDFLAGS) $(ELDFLAGS) \
|
|
||||||
-o $@ dmfilemapd.o $(DL_LIBS) $(LIBS)
|
|
||||||
|
|
||||||
dmfilemapd.static: $(LIB_STATIC) dmfilemapd.o
|
|
||||||
$(CC) $(CFLAGS) $(LDFLAGS) $(ELDFLAGS) -static -L$(interfacebuilddir) \
|
|
||||||
-o $@ dmfilemapd.o $(DL_LIBS) $(LIBS) $(STATIC_LIBS)
|
|
||||||
|
|
||||||
ifneq ("$(CFLOW_CMD)", "")
|
|
||||||
CFLOW_SOURCES = $(addprefix $(srcdir)/, $(SOURCES))
|
|
||||||
-include $(top_builddir)/libdm/libdevmapper.cflow
|
|
||||||
-include $(top_builddir)/lib/liblvm-internal.cflow
|
|
||||||
-include $(top_builddir)/lib/liblvm2cmd.cflow
|
|
||||||
-include $(top_builddir)/daemons/dmfilemapd/$(LIB_NAME).cflow
|
|
||||||
endif
|
|
||||||
|
|
||||||
install_dmfilemapd_dynamic: dmfilemapd
|
|
||||||
$(INSTALL_PROGRAM) -D $< $(sbindir)/$(<F)
|
|
||||||
|
|
||||||
install_dmfilemapd_static: dmfilemapd.static
|
|
||||||
$(INSTALL_PROGRAM) -D $< $(staticdir)/$(<F)
|
|
||||||
|
|
||||||
install_dmfilemapd: $(INSTALL_DMFILEMAPD_TARGETS)
|
|
||||||
|
|
||||||
install: install_dmfilemapd
|
|
||||||
|
|
||||||
install_device-mapper: install_dmfilemapd
|
|
1
libdm/dm-tools/.gitignore
vendored
1
libdm/dm-tools/.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
dmsetup
|
dmsetup
|
||||||
|
dmfilemapd
|
||||||
|
@ -16,8 +16,6 @@ srcdir = @srcdir@
|
|||||||
top_srcdir = @top_srcdir@
|
top_srcdir = @top_srcdir@
|
||||||
top_builddir = @top_builddir@
|
top_builddir = @top_builddir@
|
||||||
|
|
||||||
SOURCES=\
|
|
||||||
|
|
||||||
SOURCES2=\
|
SOURCES2=\
|
||||||
dmsetup.c
|
dmsetup.c
|
||||||
|
|
||||||
@ -36,8 +34,6 @@ CLEAN_TARGETS = $(TARGETS_DM) \
|
|||||||
|
|
||||||
include $(top_builddir)/libdm/make.tmpl
|
include $(top_builddir)/libdm/make.tmpl
|
||||||
|
|
||||||
device-mapper: $(TARGETS_DM)
|
|
||||||
|
|
||||||
CFLAGS_dmsetup.o += $(UDEV_CFLAGS) $(EXTRA_EXEC_CFLAGS)
|
CFLAGS_dmsetup.o += $(UDEV_CFLAGS) $(EXTRA_EXEC_CFLAGS)
|
||||||
|
|
||||||
dmsetup: dmsetup.o
|
dmsetup: dmsetup.o
|
||||||
@ -67,3 +63,41 @@ install_dmsetup_static: dmsetup.static
|
|||||||
install_device-mapper: $(INSTALL_DMSETUP_TARGETS)
|
install_device-mapper: $(INSTALL_DMSETUP_TARGETS)
|
||||||
|
|
||||||
install: install_device-mapper
|
install: install_device-mapper
|
||||||
|
|
||||||
|
# dmfilemapd support
|
||||||
|
ifeq ("@BUILD_DMFILEMAPD@", "yes")
|
||||||
|
SOURCES += dmfilemapd.c
|
||||||
|
TARGETS_DM += dmfilemapd
|
||||||
|
.PHONY: install_dmfilemapd install_dmfilemapd_static
|
||||||
|
INSTALL_DMFILEMAPD_TARGETS = install_dmfilemapd_dynamic
|
||||||
|
ifeq ("@STATIC_LINK@", "yes")
|
||||||
|
TARGETS_DM += dmfilemapd.static
|
||||||
|
else
|
||||||
|
TARGETS_DM += dmfilemapd
|
||||||
|
endif
|
||||||
|
CLEAN_TARGETS+= dmfilemapd.static
|
||||||
|
|
||||||
|
CFLAGS_dmfilemapd.o += $(EXTRA_EXEC_CFLAGS)
|
||||||
|
|
||||||
|
dmfilemapd: $(LIB_SHARED) dmfilemapd.o
|
||||||
|
$(CC) $(CFLAGS) $(LDFLAGS) $(EXTRA_EXEC_LDFLAGS) $(ELDFLAGS) \
|
||||||
|
-o $@ dmfilemapd.o -L$(top_builddir)/libdm -ldevmapper $(DL_LIBS) $(LIBS)
|
||||||
|
|
||||||
|
dmfilemapd.static: $(LIB_STATIC) dmfilemapd.o
|
||||||
|
$(CC) $(CFLAGS) $(LDFLAGS) $(ELDFLAGS) -static -L$(interfacebuilddir) \
|
||||||
|
-o $@ dmfilemapd.o $(DL_LIBS) $(LIBS) $(STATIC_LIBS)
|
||||||
|
|
||||||
|
install_dmfilemapd_dynamic: dmfilemapd
|
||||||
|
$(INSTALL_PROGRAM) -D $< $(sbindir)/$(<F)
|
||||||
|
|
||||||
|
install_dmfilemapd_static: dmfilemapd.static
|
||||||
|
$(INSTALL_PROGRAM) -D $< $(staticdir)/$(<F)
|
||||||
|
|
||||||
|
install_dmfilemapd: $(INSTALL_DMFILEMAPD_TARGETS)
|
||||||
|
|
||||||
|
install_device-mapper: install_dmfilemapd
|
||||||
|
|
||||||
|
install: install_dmfilemapd
|
||||||
|
endif
|
||||||
|
|
||||||
|
device-mapper: $(TARGETS_DM)
|
||||||
|
@ -14,11 +14,8 @@
|
|||||||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "tools/tool.h"
|
#include "util.h"
|
||||||
|
#include "libdm/misc/dm-logging.h"
|
||||||
#include "device_mapper/misc/dm-logging.h"
|
|
||||||
|
|
||||||
#include "lib/config/defaults.h"
|
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
@ -29,13 +26,15 @@
|
|||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
# include "kdev_t.h"
|
# include "libdm/misc/kdev_t.h"
|
||||||
#else
|
#else
|
||||||
# define MAJOR(x) major((x))
|
# define MAJOR(x) major((x))
|
||||||
# define MINOR(x) minor((x))
|
# define MINOR(x) minor((x))
|
||||||
# define MKDEV(x,y) makedev((x),(y))
|
# define MKDEV(x,y) makedev((x),(y))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define DEFAULT_PROC_DIR "/proc"
|
||||||
|
|
||||||
/* limit to two updates/sec */
|
/* limit to two updates/sec */
|
||||||
#define FILEMAPD_WAIT_USECS 500000
|
#define FILEMAPD_WAIT_USECS 500000
|
||||||
|
|
Loading…
Reference in New Issue
Block a user