From 2b09def6068e69a920972211572235a827e7c474 Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Wed, 23 Apr 2014 14:31:42 +0200 Subject: [PATCH] man: minor fixes in lvmetad man page - better add reference to lvm dumpconfig --type default than stating that lvmetad is not enabled by default - substitute #DEFAULT_PID_DIR# with concrete value --- aclocal.m4 | 15 +++++++++++++++ configure | 2 ++ configure.in | 1 + man/Makefile.in | 2 +- man/lvmetad.8.in | 5 ++++- 5 files changed, 23 insertions(+), 2 deletions(-) diff --git a/aclocal.m4 b/aclocal.m4 index c9f8f52da..6f752f28b 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -212,4 +212,19 @@ m4_popdef([pkg_default]) m4_popdef([pkg_description]) ]) dnl PKG_NOARCH_INSTALLDIR + +# PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, +# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) +# ------------------------------------------- +# Retrieves the value of the pkg-config variable for the given module. +AC_DEFUN([PKG_CHECK_VAR], +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl +AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl + +_PKG_CONFIG([$1], [variable="][$3]["], [$2]) +AS_VAR_COPY([$1], [pkg_cv_][$1]) + +AS_VAR_IF([$1], [""], [$5], [$4])dnl +])# PKG_CHECK_VAR + m4_include([acinclude.m4]) diff --git a/configure b/configure index 2032e15e0..bc8abd9e1 100755 --- a/configure +++ b/configure @@ -697,6 +697,7 @@ DMEVENTD DL_LIBS DEVMAPPER DEFAULT_RUN_DIR +DEFAULT_PID_DIR DEFAULT_DM_RUN_DIR DEFAULT_LOCK_DIR DEFAULT_DATA_ALIGNMENT @@ -11537,6 +11538,7 @@ LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'` + ################################################################################ diff --git a/configure.in b/configure.in index f3c357087..3a6dc15bf 100644 --- a/configure.in +++ b/configure.in @@ -1674,6 +1674,7 @@ AC_SUBST(DEFAULT_PROFILE_SUBDIR) AC_SUBST(DEFAULT_DATA_ALIGNMENT) AC_SUBST(DEFAULT_LOCK_DIR) AC_SUBST(DEFAULT_DM_RUN_DIR) +AC_SUBST(DEFAULT_PID_DIR) AC_SUBST(DEFAULT_RUN_DIR) AC_SUBST(DEVMAPPER) AC_SUBST(DLM_CFLAGS) diff --git a/man/Makefile.in b/man/Makefile.in index 6c59c8e62..af108cfc1 100644 --- a/man/Makefile.in +++ b/man/Makefile.in @@ -96,7 +96,7 @@ $(MAN5) $(MAN7) $(MAN8) $(MAN8DM) $(MAN8CLUSTER): Makefile %: %.in @case "$@" in \ */*) ;; \ - *) echo "Creating $@" ; $(SED) -e "s+#VERSION#+$(LVM_VERSION)+;s+#DEFAULT_SYS_DIR#+$(DEFAULT_SYS_DIR)+;s+#DEFAULT_ARCHIVE_DIR#+$(DEFAULT_ARCHIVE_DIR)+;s+#DEFAULT_BACKUP_DIR#+$(DEFAULT_BACKUP_DIR)+;s+#DEFAULT_PROFILE_DIR#+$(DEFAULT_PROFILE_DIR)+;s+#DEFAULT_CACHE_DIR#+$(DEFAULT_CACHE_DIR)+;s+#DEFAULT_LOCK_DIR#+$(DEFAULT_LOCK_DIR)+;s+#CLVMD_PATH#+@CLVMD_PATH@+;s+#LVM_PATH#+@LVM_PATH@+;s+#DEFAULT_RUN_DIR#+@DEFAULT_RUN_DIR@+;s+#SYSTEMD_GENERATOR_DIR#+$(SYSTEMD_GENERATOR_DIR)+;" $< > $@ ;; \ + *) echo "Creating $@" ; $(SED) -e "s+#VERSION#+$(LVM_VERSION)+;s+#DEFAULT_SYS_DIR#+$(DEFAULT_SYS_DIR)+;s+#DEFAULT_ARCHIVE_DIR#+$(DEFAULT_ARCHIVE_DIR)+;s+#DEFAULT_BACKUP_DIR#+$(DEFAULT_BACKUP_DIR)+;s+#DEFAULT_PROFILE_DIR#+$(DEFAULT_PROFILE_DIR)+;s+#DEFAULT_CACHE_DIR#+$(DEFAULT_CACHE_DIR)+;s+#DEFAULT_LOCK_DIR#+$(DEFAULT_LOCK_DIR)+;s+#CLVMD_PATH#+@CLVMD_PATH@+;s+#LVM_PATH#+@LVM_PATH@+;s+#DEFAULT_RUN_DIR#+@DEFAULT_RUN_DIR@+;s+#DEFAULT_PID_DIR#+@DEFAULT_PID_DIR@+;s+#SYSTEMD_GENERATOR_DIR#+$(SYSTEMD_GENERATOR_DIR)+;" $< > $@ ;; \ esac install_man5: $(MAN5) diff --git a/man/lvmetad.8.in b/man/lvmetad.8.in index 444c7c0eb..a8ca67834 100644 --- a/man/lvmetad.8.in +++ b/man/lvmetad.8.in @@ -19,7 +19,10 @@ from udev rules (which must be installed for LVM to work correctly when lvmetad is in use). Through these notifications, lvmetad has an up-to-date and consistent image of the volume groups available in the system. -By default, lvmetad, even if running, is not used by LVM. See \fBlvm.conf\fP(5). +lvmetad is used by LVM only if it is enabled in \fBlvm.conf\fP(5) by specifying the +\fBglobal/use_lvmetad\fP setting. If this is not defined in the LVM configuration +explicitly then default setting is used instead (see the output of +\fBlvm dumpconfig --type default global/use_lvmetad\fP command). .SH OPTIONS To run the daemon in a test environment both the pidfile_path and the