mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Add configure --with-dmdir to compile against a device-mapper source tree.
Use no flush suspending for mirrors.
This commit is contained in:
parent
b9ffd32cd3
commit
33f732c5e9
@ -1,5 +1,7 @@
|
|||||||
Version 2.02.18 -
|
Version 2.02.18 -
|
||||||
====================================
|
====================================
|
||||||
|
Add configure --with-dmdir to compile against a device-mapper source tree.
|
||||||
|
Use no flush suspending for mirrors.
|
||||||
Add dmeventd_mirror register_mutex, tidy initialisation & add memlock.
|
Add dmeventd_mirror register_mutex, tidy initialisation & add memlock.
|
||||||
Fix create mirror with name longer than 22 chars.
|
Fix create mirror with name longer than 22 chars.
|
||||||
Fix some activate.c prototypes when compiled without devmapper.
|
Fix some activate.c prototypes when compiled without devmapper.
|
||||||
|
14
configure
vendored
14
configure
vendored
@ -310,7 +310,7 @@ ac_includes_default="\
|
|||||||
#endif"
|
#endif"
|
||||||
|
|
||||||
ac_default_prefix=/usr
|
ac_default_prefix=/usr
|
||||||
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os AWK CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB CFLOW_CMD CSCOPE_CMD CPP EGREP ALLOCA LIBOBJS POW_LIB MSGFMT MODPROBE_CMD JOBS STATIC_LINK LVM1 POOL SNAPSHOTS MIRRORS OWNER GROUP COPTIMISE_FLAG CLDFLAGS CLDWHOLEARCHIVE CLDNOWHOLEARCHIVE LDDEPS LIB_SUFFIX LVM_VERSION LVM1_FALLBACK DEBUG DEVMAPPER HAVE_LIBDL HAVE_SELINUX HAVE_REALTIME CMDLIB LOCALEDIR CONFDIR STATICDIR INTL_PACKAGE INTL CLVMD CLUSTER FSADM DMEVENTD LTLIBOBJS'
|
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os AWK CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB CFLOW_CMD CSCOPE_CMD CPP EGREP ALLOCA LIBOBJS POW_LIB MSGFMT MODPROBE_CMD JOBS STATIC_LINK LVM1 POOL SNAPSHOTS MIRRORS OWNER GROUP COPTIMISE_FLAG CLDFLAGS CLDWHOLEARCHIVE CLDNOWHOLEARCHIVE LDDEPS LIB_SUFFIX LVM_VERSION LVM1_FALLBACK DEBUG DEVMAPPER HAVE_LIBDL HAVE_SELINUX HAVE_REALTIME CMDLIB LOCALEDIR CONFDIR STATICDIR DMDIR INTL_PACKAGE INTL CLVMD CLUSTER FSADM DMEVENTD LTLIBOBJS'
|
||||||
ac_subst_files=''
|
ac_subst_files=''
|
||||||
|
|
||||||
# Initialize some variables set by options.
|
# Initialize some variables set by options.
|
||||||
@ -883,6 +883,7 @@ Optional Packages:
|
|||||||
--with-localedir=DIR Translation files in DIR PREFIX/share/locale
|
--with-localedir=DIR Translation files in DIR PREFIX/share/locale
|
||||||
--with-confdir=DIR Configuration files in DIR /etc
|
--with-confdir=DIR Configuration files in DIR /etc
|
||||||
--with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin
|
--with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin
|
||||||
|
--with-dmdir=DIR Build against device-mapper source tree in DIR
|
||||||
|
|
||||||
Some influential environment variables:
|
Some influential environment variables:
|
||||||
CC C compiler command
|
CC C compiler command
|
||||||
@ -8964,6 +8965,15 @@ else
|
|||||||
STATICDIR='${exec_prefix}/sbin'
|
STATICDIR='${exec_prefix}/sbin'
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
|
|
||||||
|
# Check whether --with-dmdir or --without-dmdir was given.
|
||||||
|
if test "${with_dmdir+set}" = set; then
|
||||||
|
withval="$with_dmdir"
|
||||||
|
DMDIR="$withval"
|
||||||
|
else
|
||||||
|
DMDIR=
|
||||||
|
fi;
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
if test x$READLINE = xyes; then
|
if test x$READLINE = xyes; then
|
||||||
|
|
||||||
@ -11200,6 +11210,7 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
@ -11900,6 +11911,7 @@ s,@CMDLIB@,$CMDLIB,;t t
|
|||||||
s,@LOCALEDIR@,$LOCALEDIR,;t t
|
s,@LOCALEDIR@,$LOCALEDIR,;t t
|
||||||
s,@CONFDIR@,$CONFDIR,;t t
|
s,@CONFDIR@,$CONFDIR,;t t
|
||||||
s,@STATICDIR@,$STATICDIR,;t t
|
s,@STATICDIR@,$STATICDIR,;t t
|
||||||
|
s,@DMDIR@,$DMDIR,;t t
|
||||||
s,@INTL_PACKAGE@,$INTL_PACKAGE,;t t
|
s,@INTL_PACKAGE@,$INTL_PACKAGE,;t t
|
||||||
s,@INTL@,$INTL,;t t
|
s,@INTL@,$INTL,;t t
|
||||||
s,@CLVMD@,$CLVMD,;t t
|
s,@CLVMD@,$CLVMD,;t t
|
||||||
|
@ -526,6 +526,11 @@ AC_ARG_WITH(staticdir,
|
|||||||
[ STATICDIR="$withval" ],
|
[ STATICDIR="$withval" ],
|
||||||
[ STATICDIR='${exec_prefix}/sbin' ])
|
[ STATICDIR='${exec_prefix}/sbin' ])
|
||||||
|
|
||||||
|
AC_ARG_WITH(dmdir,
|
||||||
|
[ --with-dmdir=DIR Build against device-mapper source tree in DIR],
|
||||||
|
[ DMDIR="$withval" ],
|
||||||
|
[ DMDIR= ])
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
dnl -- Ensure additional headers required
|
dnl -- Ensure additional headers required
|
||||||
if test x$READLINE = xyes; then
|
if test x$READLINE = xyes; then
|
||||||
@ -608,6 +613,7 @@ AC_SUBST(MSGFMT)
|
|||||||
AC_SUBST(LOCALEDIR)
|
AC_SUBST(LOCALEDIR)
|
||||||
AC_SUBST(CONFDIR)
|
AC_SUBST(CONFDIR)
|
||||||
AC_SUBST(STATICDIR)
|
AC_SUBST(STATICDIR)
|
||||||
|
AC_SUBST(DMDIR)
|
||||||
AC_SUBST(INTL_PACKAGE)
|
AC_SUBST(INTL_PACKAGE)
|
||||||
AC_SUBST(INTL)
|
AC_SUBST(INTL)
|
||||||
AC_SUBST(CLVMD)
|
AC_SUBST(CLVMD)
|
||||||
|
@ -993,6 +993,8 @@ static int _tree_action(struct dev_manager *dm, struct logical_volume *lv, actio
|
|||||||
break;
|
break;
|
||||||
case SUSPEND:
|
case SUSPEND:
|
||||||
dm_tree_skip_lockfs(root);
|
dm_tree_skip_lockfs(root);
|
||||||
|
if ((lv->status & MIRRORED) && !(lv->status & PVMOVE))
|
||||||
|
dm_tree_use_no_flush_suspend(root);
|
||||||
case SUSPEND_WITH_LOCKFS:
|
case SUSPEND_WITH_LOCKFS:
|
||||||
if (!dm_tree_suspend_children(root, dlid, ID_LEN + sizeof(UUID_PREFIX) - 1))
|
if (!dm_tree_suspend_children(root, dlid, ID_LEN + sizeof(UUID_PREFIX) - 1))
|
||||||
goto_out;
|
goto_out;
|
||||||
|
@ -73,6 +73,10 @@ ifeq ("@INTL@", "yes")
|
|||||||
DEFS += -DINTL_PACKAGE=\"@INTL_PACKAGE@\" -DLOCALEDIR=\"@LOCALEDIR@\"
|
DEFS += -DINTL_PACKAGE=\"@INTL_PACKAGE@\" -DLOCALEDIR=\"@LOCALEDIR@\"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq ("@DMDIR@", "")
|
||||||
|
LDFLAGS += -L@DMDIR@/lib/ioctl
|
||||||
|
endif
|
||||||
|
|
||||||
LDFLAGS += -L$(top_srcdir)/lib -L$(libdir)
|
LDFLAGS += -L$(top_srcdir)/lib -L$(libdir)
|
||||||
|
|
||||||
#DEFS += -DDEBUG_POOL
|
#DEFS += -DDEBUG_POOL
|
||||||
@ -89,6 +93,10 @@ LIB_VERSION := $(shell cat $(top_srcdir)/VERSION | \
|
|||||||
|
|
||||||
INCLUDES += -I. -I$(top_srcdir)/include
|
INCLUDES += -I. -I$(top_srcdir)/include
|
||||||
|
|
||||||
|
ifneq ("@DMDIR@", "")
|
||||||
|
INCLUDES += -I@DMDIR@/include
|
||||||
|
endif
|
||||||
|
|
||||||
ifdef DESTDIR
|
ifdef DESTDIR
|
||||||
INCLUDES += -I$(DESTDIR)/usr/include
|
INCLUDES += -I$(DESTDIR)/usr/include
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user