Skip to contentSkip to conversation

master - Add lvmlockd

PATCH David Teigland 1 participant 1 message Jul 2, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=fe70b03de2956b6493993990d9fb1cde3f41ebcd
Commit:        fe70b03de2956b6493993990d9fb1cde3f41ebcd
Parent:        a32d5a4afc5bdc4585132765fb02739a8f352e49
Author:        David Teigland <[email protected]>
AuthorDate:    Thu Mar 5 14:00:44 2015 -0600
Committer:     David Teigland <[email protected]>
CommitterDate: Thu Jul 2 15:42:26 2015 -0500

Add lvmlockd

---
 configure                                          |  246 +-
 configure.in                                       |   57 +
 daemons/Makefile.in                                |    8 +-
 daemons/lvmlockd/Makefile.in                       |   53 +
 daemons/lvmlockd/lvmlockctl.c                      |  635 +++
 daemons/lvmlockd/lvmlockd-client.h                 |   49 +
 daemons/lvmlockd/lvmlockd-core.c                   | 5715 ++++++++++++++++++++
 daemons/lvmlockd/lvmlockd-dlm.c                    |  666 +++
 daemons/lvmlockd/lvmlockd-internal.h               |  373 ++
 daemons/lvmlockd/lvmlockd-sanlock.c                | 1716 ++++++
 include/.symlinks.in                               |    2 +
 lib/Makefile.in                                    |    5 +
 lib/cache/lvmetad.c                                |    8 +
 lib/commands/toolcontext.h                         |   16 +-
 lib/config/config_settings.h                       |   34 +
 lib/config/defaults.h                              |    5 +
 lib/display/display.c                              |   32 +
 lib/display/display.h                              |    3 +
 lib/format_text/export.c                           |    8 +-
 lib/format_text/flags.c                            |    1 +
 lib/format_text/import_vsn1.c                      |   17 +
 lib/locking/lvmlockd.c                             | 2588 +++++++++
 lib/locking/lvmlockd.h                             |  239 +
 lib/metadata/lv.c                                  |   24 +
 lib/metadata/lv.h                                  |    3 +
 lib/metadata/lv_manip.c                            |   33 +-
 lib/metadata/metadata-exported.h                   |   23 +-
 lib/metadata/metadata.c                            |  247 +-
 lib/metadata/raid_manip.c                          |    7 +
 lib/metadata/replicator_manip.c                    |    4 +-
 lib/metadata/vg.c                                  |   35 +-
 lib/metadata/vg.h                                  |    6 +
 lib/misc/configure.h.in                            |    9 +
 lib/report/columns.h                               |    5 +-
 lib/report/properties.c                            |    6 +
 lib/report/report.c                                |   30 +
 libdaemon/client/daemon-client.c                   |   16 +-
 libdaemon/server/daemon-log.c                      |    5 +-
 liblvm/lvm_vg.c                                    |    2 +-
 man/Makefile.in                                    |    9 +-
 man/lvmlockd.8.in                                  |  755 +++
 man/lvmsystemid.7.in                               |   25 +-
 nix/default.nix                                    |    1 +
 scripts/Makefile.in                                |    6 +
 scripts/lvm2_lvmlockd_systemd_red_hat.service.in   |   16 +
 scripts/lvm2_lvmlocking_systemd_red_hat.service.in |   24 +
 spec/build.inc                                     |    2 +
 spec/packages.inc                                  |   15 +
 spec/source.inc                                    |    2 +
 test/Makefile.in                                   |   30 +
 test/lib/aux.sh                                    |   10 +
 test/lib/flavour-udev-lvmlockd-dlm.sh              |    6 +
 test/lib/flavour-udev-lvmlockd-sanlock.sh          |    6 +
 test/lib/inittest.sh                               |    7 +
 test/lib/test-corosync-conf                        |   19 +
 test/lib/test-dlm-conf                             |    4 +
 test/lib/test-sanlock-conf                         |    2 +
 test/lib/utils.sh                                  |    2 +
 test/shell/dlm-hello-world.sh                      |   27 +
 test/shell/dlm-prepare.sh                          |   90 +
 test/shell/dlm-remove.sh                           |   20 +
 test/shell/process-each-lv.sh                      |   14 +-
 test/shell/process-each-pv.sh                      |  242 +-
 test/shell/process-each-vg.sh                      |   72 +-
 test/shell/process-each-vgreduce.sh                |  327 ++
 test/shell/sanlock-hello-world.sh                  |   27 +
 test/shell/sanlock-prepare.sh                      |   86 +
 test/shell/sanlock-remove.sh                       |   28 +
 tools/args.h                                       |    5 +
 tools/commands.h                                   |   43 +-
 tools/lvchange.c                                   |   32 +
 tools/lvconvert.c                                  |  131 +-
 tools/lvcreate.c                                   |   16 +-
 tools/lvmcmdline.c                                 |   57 +-
 tools/lvrename.c                                   |    6 +-
 tools/lvresize.c                                   |    6 +-
 tools/polldaemon.c                                 |   47 +-
 tools/pvchange.c                                   |    8 +
 tools/pvcreate.c                                   |    4 +
 tools/pvmove.c                                     |   63 +-
 tools/pvremove.c                                   |    4 +
 tools/pvresize.c                                   |    8 +
 tools/pvscan.c                                     |    7 +-
 tools/reporter.c                                   |    8 +
 tools/toollib.c                                    |  327 +-
 tools/tools.h                                      |    6 +-
 tools/vgchange.c                                   |  402 ++-
 tools/vgcreate.c                                   |   47 +
 tools/vgextend.c                                   |    4 +
 tools/vgmerge.c                                    |   13 +-
 tools/vgreduce.c                                   |   12 +-
 tools/vgremove.c                                   |   19 +
 tools/vgrename.c                                   |   24 +-
 tools/vgsplit.c                                    |   17 +-
 94 files changed, 15680 insertions(+), 441 deletions(-)
configure +232 -1
index 13e40f8..3d650a1 100755
@@ -636,6 +636,7 @@ kerneldir
 interface
 CMIRRORD_PIDFILE
 CLVMD_PIDFILE
+LVMLOCKD_PIDFILE
 LVMPOLLD_PIDFILE
 LVMETAD_PIDFILE
 DMEVENTD_PIDFILE
@@ -693,6 +694,7 @@ DMEVENTD_PATH
 DMEVENTD
 DL_LIBS
 DEVMAPPER
+DEFAULT_USE_LVMLOCKD
 DEFAULT_USE_LVMPOLLD
 DEFAULT_USE_LVMETAD
 DEFAULT_USE_BLKID_WIPING
@@ -722,6 +724,7 @@ CLDWHOLEARCHIVE
 CLDNOWHOLEARCHIVE
 CLDFLAGS
 CACHE
+BUILD_LVMLOCKD
 BUILD_LVMPOLLD
 BUILD_LVMETAD
 BUILD_DMEVENTD
@@ -740,6 +743,10 @@ SYSTEMD_LIBS
 SYSTEMD_CFLAGS
 BLKID_LIBS
 BLKID_CFLAGS
+LOCKD_DLM_LIBS
+LOCKD_DLM_CFLAGS
+LOCKD_SANLOCK_LIBS
+LOCKD_SANLOCK_CFLAGS
 VALGRIND_LIBS
 VALGRIND_CFLAGS
 CUNIT_LIBS
@@ -916,6 +923,9 @@ with_lvmetad_pidfile
 enable_lvmpolld
 enable_use_lvmpolld
 with_lvmpolld_pidfile
+enable_lvmlockd
+enable_use_lvmlockd
+with_lvmlockd_pidfile
 enable_blkid_wiping
 enable_udev_systemd_background_jobs
 enable_udev_sync
@@ -994,6 +1004,10 @@ CUNIT_CFLAGS
 CUNIT_LIBS
 VALGRIND_CFLAGS
 VALGRIND_LIBS
+LOCKD_SANLOCK_CFLAGS
+LOCKD_SANLOCK_LIBS
+LOCKD_DLM_CFLAGS
+LOCKD_DLM_LIBS
 BLKID_CFLAGS
 BLKID_LIBS
 SYSTEMD_CFLAGS
@@ -1632,6 +1646,8 @@ Optional Features:
   --disable-use-lvmetad   disable usage of LVM Metadata Daemon
   --enable-lvmpolld       enable the LVM Polling Daemon
   --disable-use-lvmpolld  disable usage of LVM Poll Daemon
+  --enable-lvmlockd       enable the LVM lock daemon
+  --disable-use-lvmlockd  disable usage of LVM lock daemon
   --disable-blkid_wiping  disable libblkid detection of signatures when wiping
                           and use native code instead
   --disable-udev-systemd-background-jobs
@@ -1725,6 +1741,8 @@ Optional Packages:
                           lvmetad pidfile [PID_DIR/lvmetad.pid]
   --with-lvmpolld-pidfile=PATH
                           lvmpolld pidfile [PID_DIR/lvmpolld.pid]
+  --with-lvmlockd-pidfile=PATH
+                          lvmlockd pidfile [PID_DIR/lvmlockd.pid]
   --with-localedir=DIR    locale-dependent data [DATAROOTDIR/locale]
   --with-confdir=DIR      configuration files in DIR [/etc]
   --with-staticdir=DIR    static binaries in DIR [EPREFIX/sbin]
@@ -1809,6 +1827,14 @@ Some influential environment variables:
               C compiler flags for VALGRIND, overriding pkg-config
   VALGRIND_LIBS
               linker flags for VALGRIND, overriding pkg-config
+  LOCKD_SANLOCK_CFLAGS
+              C compiler flags for LOCKD_SANLOCK, overriding pkg-config
+  LOCKD_SANLOCK_LIBS
+              linker flags for LOCKD_SANLOCK, overriding pkg-config
+  LOCKD_DLM_CFLAGS
+              C compiler flags for LOCKD_DLM, overriding pkg-config
+  LOCKD_DLM_LIBS
+              linker flags for LOCKD_DLM, overriding pkg-config
   BLKID_CFLAGS
               C compiler flags for BLKID, overriding pkg-config
   BLKID_LIBS  linker flags for BLKID, overriding pkg-config
@@ -3042,6 +3068,7 @@ case "$host_os" in
 		DEVMAPPER=yes
 		LVMETAD=no
 		LVMPOLLD=no
+		LVMLOCKD=no
 		ODIRECT=yes
 		DM_IOCTLS=yes
 		SELINUX=yes
@@ -10966,6 +10993,207 @@ _ACEOF
 
 
 ################################################################################
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build lvmlockd" >&5
+$as_echo_n "checking whether to build lvmlockd... " >&6; }
+# Check whether --enable-lvmlockd was given.
+if test "${enable_lvmlockd+set}" = set; then :
+  enableval=$enable_lvmlockd; LVMLOCKD=$enableval
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVMLOCKD" >&5
+$as_echo "$LVMLOCKD" >&6; }
+
+BUILD_LVMLOCKD=$LVMLOCKD
+
+if test "$BUILD_LVMLOCKD" = yes; then
+	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking defaults for use_lvmlockd" >&5
+$as_echo_n "checking defaults for use_lvmlockd... " >&6; }
+	# Check whether --enable-use_lvmlockd was given.
+if test "${enable_use_lvmlockd+set}" = set; then :
+  enableval=$enable_use_lvmlockd; case ${enableval} in
+		       yes) DEFAULT_USE_LVMLOCKD=1 ;;
+		       *) DEFAULT_USE_LVMLOCKD=0 ;;
+		       esac
+else
+  DEFAULT_USE_LVMLOCKD=1
+fi
+
+	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_USE_LVMLOCKD" >&5
+$as_echo "$DEFAULT_USE_LVMLOCKD" >&6; }
+
+$as_echo "#define LVMLOCKD_SUPPORT 1" >>confdefs.h
+
+
+
+# Check whether --with-lvmlockd-pidfile was given.
+if test "${with_lvmlockd_pidfile+set}" = set; then :
+  withval=$with_lvmlockd_pidfile; LVMLOCKD_PIDFILE=$withval
+else
+  LVMLOCKD_PIDFILE="$DEFAULT_PID_DIR/lvmlockd.pid"
+fi
+
+
+cat >>confdefs.h <<_ACEOF
+#define LVMLOCKD_PIDFILE "$LVMLOCKD_PIDFILE"
+_ACEOF
+
+else
+	DEFAULT_USE_LVMLOCKD=0
+fi
+
+cat >>confdefs.h <<_ACEOF
+#define DEFAULT_USE_LVMLOCKD $DEFAULT_USE_LVMLOCKD
+_ACEOF
+
+
+################################################################################
+if test "$BUILD_LVMLOCKD" = yes; then
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOCKD_SANLOCK" >&5
+$as_echo_n "checking for LOCKD_SANLOCK... " >&6; }
+
+if test -n "$LOCKD_SANLOCK_CFLAGS"; then
+    pkg_cv_LOCKD_SANLOCK_CFLAGS="$LOCKD_SANLOCK_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+    if test -n "$PKG_CONFIG" && \
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsanlock_client\""; } >&5
+  ($PKG_CONFIG --exists --print-errors "libsanlock_client") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; then
+  pkg_cv_LOCKD_SANLOCK_CFLAGS=`$PKG_CONFIG --cflags "libsanlock_client" 2>/dev/null`
+		      test "x$?" != "x0" && pkg_failed=yes
+else
+  pkg_failed=yes
+fi
+ else
+    pkg_failed=untried
+fi
+if test -n "$LOCKD_SANLOCK_LIBS"; then
+    pkg_cv_LOCKD_SANLOCK_LIBS="$LOCKD_SANLOCK_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+    if test -n "$PKG_CONFIG" && \
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsanlock_client\""; } >&5
+  ($PKG_CONFIG --exists --print-errors "libsanlock_client") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; then
+  pkg_cv_LOCKD_SANLOCK_LIBS=`$PKG_CONFIG --libs "libsanlock_client" 2>/dev/null`
+		      test "x$?" != "x0" && pkg_failed=yes
+else
+  pkg_failed=yes
+fi
+ else
+    pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+        _pkg_short_errors_supported=yes
+else
+        _pkg_short_errors_supported=no
+fi
+        if test $_pkg_short_errors_supported = yes; then
+	        LOCKD_SANLOCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsanlock_client" 2>&1`
+        else
+	        LOCKD_SANLOCK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsanlock_client" 2>&1`
+        fi
+	# Put the nasty error message in config.log where it belongs
+	echo "$LOCKD_SANLOCK_PKG_ERRORS" >&5
+
+	$bailout
+elif test $pkg_failed = untried; then
+     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+	$bailout
+else
+	LOCKD_SANLOCK_CFLAGS=$pkg_cv_LOCKD_SANLOCK_CFLAGS
+	LOCKD_SANLOCK_LIBS=$pkg_cv_LOCKD_SANLOCK_LIBS
+        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+	HAVE_LOCKD_SANLOCK=yes
+fi
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOCKD_DLM" >&5
+$as_echo_n "checking for LOCKD_DLM... " >&6; }
+
+if test -n "$LOCKD_DLM_CFLAGS"; then
+    pkg_cv_LOCKD_DLM_CFLAGS="$LOCKD_DLM_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+    if test -n "$PKG_CONFIG" && \
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
+  ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; then
+  pkg_cv_LOCKD_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
+		      test "x$?" != "x0" && pkg_failed=yes
+else
+  pkg_failed=yes
+fi
+ else
+    pkg_failed=untried
+fi
+if test -n "$LOCKD_DLM_LIBS"; then
+    pkg_cv_LOCKD_DLM_LIBS="$LOCKD_DLM_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+    if test -n "$PKG_CONFIG" && \
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
+  ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; then
+  pkg_cv_LOCKD_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
+		      test "x$?" != "x0" && pkg_failed=yes
+else
+  pkg_failed=yes
+fi
+ else
+    pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+        _pkg_short_errors_supported=yes
+else
+        _pkg_short_errors_supported=no
+fi
+        if test $_pkg_short_errors_supported = yes; then
+	        LOCKD_DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdlm" 2>&1`
+        else
+	        LOCKD_DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdlm" 2>&1`
+        fi
+	# Put the nasty error message in config.log where it belongs
+	echo "$LOCKD_DLM_PKG_ERRORS" >&5
+
+	$bailout
+elif test $pkg_failed = untried; then
+     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+	$bailout
+else
+	LOCKD_DLM_CFLAGS=$pkg_cv_LOCKD_DLM_CFLAGS
+	LOCKD_DLM_LIBS=$pkg_cv_LOCKD_DLM_LIBS
+        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+	HAVE_LOCKD_DLM=yes
+fi
+fi
+
+################################################################################
+
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable libblkid detection of signatures when wiping" >&5
 $as_echo_n "checking whether to enable libblkid detection of signatures when wiping... " >&6; }
 # Check whether --enable-blkid_wiping was given.
@@ -13286,8 +13514,11 @@ LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
 
 
 
+
+
+
 ################################################################################
-ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/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/lvmetad/Makefile daemons/lvmpolld/Makefile conf/Makefile conf/example.conf conf/lvmlocal.conf conf/command_profile_template.profile conf/metadata_profile_template.profile include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/Makefile lib/misc/lvm-version.h lib/raid/Makefile lib/snapshot/Makefile lib/thin/Makefile lib/cache_segtype/Makefile libdaemon/Makefile libdaemon/client/Makefile libdaemon/server/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile 
 liblvm/liblvm2app.pc man/Makefile po/Makefile python/Makefile python/setup.py scripts/blkdeactivate.sh scripts/blk_availability_init_red_hat scripts/blk_availability_systemd_red_hat.service scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/dm_event_systemd_red_hat.service scripts/dm_event_systemd_red_hat.socket scripts/lvm2_cluster_activation_red_hat.sh scripts/lvm2_cluster_activation_systemd_red_hat.service scripts/lvm2_clvmd_systemd_red_hat.service scripts/lvm2_cmirrord_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_monitoring_init_red_hat scripts/lvm2_monitoring_systemd_red_hat.service scripts/lvm2_pvscan_systemd_red_hat at .service scripts/lvm2_tmpfiles_red_hat.conf scripts/Makefile test/Makefile test/api/Makefile test/unit/
 Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile"
+ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/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/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/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/Makefile lib/misc/lvm-version.h lib/raid/Makefile lib/snapshot/Makefile lib/thin/Makefile lib/cache_segtype/Makefile libdaemon/Makefile libdaemon/client/Makefile libdaemon/server/Makefile libdm/Makefile libdm/libdev
 mapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile python/Makefile python/setup.py scripts/blkdeactivate.sh scripts/blk_availability_init_red_hat scripts/blk_availability_systemd_red_hat.service scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/dm_event_systemd_red_hat.service scripts/dm_event_systemd_red_hat.socket scripts/lvm2_cluster_activation_red_hat.sh scripts/lvm2_cluster_activation_systemd_red_hat.service scripts/lvm2_clvmd_systemd_red_hat.service scripts/lvm2_cmirrord_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_lvmlocking_systemd_red_hat.service scripts/lvm2_monitoring_init_red_hat scripts/lvm2_monitoring_systemd_red_hat.service scripts/lvm2_pvscan

_systemd_red_hat at .service scripts/lvm2_tmpfiles_red_hat.conf scripts/Makefile test/Makefile test/api/Makefile test/unit/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile"

cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
@@ -13997,6 +14228,7 @@ do

     "daemons/dmeventd/plugins/thin/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/thin/Makefile" ;;
     "daemons/lvmetad/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/lvmetad/Makefile" ;;
     "daemons/lvmpolld/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/lvmpolld/Makefile" ;;
+    "daemons/lvmlockd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/lvmlockd/Makefile" ;;
     "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
     "conf/example.conf") CONFIG_FILES="$CONFIG_FILES conf/example.conf" ;;
     "conf/lvmlocal.conf") CONFIG_FILES="$CONFIG_FILES conf/lvmlocal.conf" ;;
@@ -14043,6 +14275,8 @@ do
     "scripts/lvm2_lvmpolld_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmpolld_init_red_hat" ;;
     "scripts/lvm2_lvmpolld_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmpolld_systemd_red_hat.service" ;;
     "scripts/lvm2_lvmpolld_systemd_red_hat.socket") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmpolld_systemd_red_hat.socket" ;;
+    "scripts/lvm2_lvmlockd_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmlockd_systemd_red_hat.service" ;;
+    "scripts/lvm2_lvmlocking_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmlocking_systemd_red_hat.service" ;;
     "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
     "scripts/lvm2_monitoring_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_systemd_red_hat.service" ;;
     "scripts/lvm2_pvscan_systemd_red_hat at .service") CONFIG_FILES="$CONFIG_FILES scripts/[email protected]" ;;

@@ -14668,3 +14902,13 @@ if test "$ODIRECT" != yes; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: O_DIRECT disabled: low-memory pvmove may lock up" >&5
$as_echo "$as_me: WARNING: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
fi
+
+if test "$BUILD_LVMLOCKD" == yes && test "$BUILD_LVMPOLLD" == no; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: lvmlockd requires lvmpolld" >&5 +$as_echo "$as_me: WARNING: lvmlockd requires lvmpolld" >&2;}
+fi
+
+if test "$BUILD_LVMLOCKD" == yes && test "$BUILD_LVMETAD" == no; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: lvmlockd requires lvmetad" >&5 +$as_echo "$as_me: WARNING: lvmlockd requires lvmetad" >&2;}
+fi

configure.in +57 -0

102 lines not on this page · raw message

daemons/Makefile.in +6 -2
index 8a466b3..a2e7094 100644
@@ -15,7 +15,7 @@ srcdir = @srcdir@
 top_srcdir = @top_srcdir@
 top_builddir = @top_builddir@
 
-.PHONY: dmeventd clvmd cmirrord lvmetad lvmpolld
+.PHONY: dmeventd clvmd cmirrord lvmetad lvmpolld lvmlockd
 
 ifneq ("@CLVMD@", "none")
   SUBDIRS += clvmd
@@ -40,8 +40,12 @@ ifeq ("@BUILD_LVMPOLLD@", "yes")
   SUBDIRS += lvmpolld
 endif
 
+ifeq ("@BUILD_LVMLOCKD@", "yes")
+  SUBDIRS += lvmlockd 
+endif
+
 ifeq ($(MAKECMDGOALS),distclean)
-  SUBDIRS = clvmd cmirrord dmeventd lvmetad lvmpolld
+  SUBDIRS = clvmd cmirrord dmeventd lvmetad lvmpolld lvmlockd
 endif
 
 include $(top_builddir)/make.tmpl
daemons/lvmlockd/Makefile.in new file +53 -0

53 lines not on this page · raw message

daemons/lvmlockd/lvmlockctl.c new file +635 -0

635 lines not on this page · raw message

daemons/lvmlockd/lvmlockd-client.h new file +49 -0

49 lines not on this page · raw message

daemons/lvmlockd/lvmlockd-core.c new file +5715 -0

1,834 lines not on this page · raw message

daemons/lvmlockd/lvmlockd-dlm.c new file +666 -0

666 lines not on this page · raw message

daemons/lvmlockd/lvmlockd-internal.h new file +373 -0

373 lines not on this page · raw message

daemons/lvmlockd/lvmlockd-sanlock.c new file +1716 -0

1,716 lines not on this page · raw message

include/.symlinks.in +2 -0
index d6a95fd..dc4456a 100644

Lines of this file are not shown. View the raw message.

lib/Makefile.in +5 -0
index ffe18f0..dbd4e3f 100644

Lines of this file are not shown. View the raw message.

lib/cache/lvmetad.c +8 -0
index 01c3f08..783a114 100644

Lines of this file are not shown. View the raw message.

lib/commands/toolcontext.h +13 -3
index 46d83b3..5e43dd8 100644

Lines of this file are not shown. View the raw message.

lib/config/config_settings.h +34 -0
index 68f593d..5d042c9 100644

Lines of this file are not shown. View the raw message.

lib/config/defaults.h +5 -0
index 2d74c17..6d3fec0 100644

Lines of this file are not shown. View the raw message.

lib/display/display.c +32 -0
index 98433e7..62ad1fe 100644

Lines of this file are not shown. View the raw message.

lib/display/display.h +3 -0
index cc5654b..f4e766c 100644

Lines of this file are not shown. View the raw message.

lib/format_text/export.c +7 -1
index 11766ac..ee9a9cf 100644

Lines of this file are not shown. View the raw message.

lib/format_text/flags.c +1 -0
index bbd47c3..717ef65 100644

Lines of this file are not shown. View the raw message.

lib/format_text/import_vsn1.c +17 -0
index 931aff8..3645fa2 100644

Lines of this file are not shown. View the raw message.

lib/locking/lvmlockd.c new file +2588 -0

2,588 lines not on this page · raw message

lib/locking/lvmlockd.h new file +239 -0

239 lines not on this page · raw message

lib/metadata/lv.c +24 -0
index f0a3d77..49d4a09 100644

Lines of this file are not shown. View the raw message.

lib/metadata/lv.h +3 -0
index f7bbb1e..a2b0f6f 100644

Lines of this file are not shown. View the raw message.

lib/metadata/lv_manip.c +31 -2
index b539fde..87888a7 100644

Lines of this file are not shown. View the raw message.

lib/metadata/metadata-exported.h +21 -2
index ff10a98..63a57ca 100644

Lines of this file are not shown. View the raw message.

lib/metadata/metadata.c +221 -26

247 lines not on this page · raw message

lib/metadata/raid_manip.c +7 -0
index 8b9879c..c574a14 100644

Lines of this file are not shown. View the raw message.

lib/metadata/replicator_manip.c +2 -2
index 54dc759..fc4bf5f 100644

Lines of this file are not shown. View the raw message.

lib/metadata/vg.c +33 -2
index 1db8e75..0e5aee5 100644

Lines of this file are not shown. View the raw message.

lib/metadata/vg.h +6 -0
index 2da5651..a21af8b 100644

Lines of this file are not shown. View the raw message.

lib/misc/configure.h.in +9 -0
index 6daf105..89b7a7b 100644

Lines of this file are not shown. View the raw message.

lib/report/columns.h +4 -1
index 1576c28..22141d8 100644

Lines of this file are not shown. View the raw message.

lib/report/properties.c +6 -0
index 5cd3c4d..e38359b 100644

Lines of this file are not shown. View the raw message.

lib/report/report.c +30 -0
index 025b896..40f947f 100644

Lines of this file are not shown. View the raw message.

libdaemon/client/daemon-client.c +13 -3
index d37b966..991bf8a 100644

Lines of this file are not shown. View the raw message.

libdaemon/server/daemon-log.c +3 -2
index 87ad547..c1765de 100644

Lines of this file are not shown. View the raw message.

liblvm/lvm_vg.c +1 -1
index 76c5c63..a2d42d2 100644

Lines of this file are not shown. View the raw message.

man/Makefile.in +8 -1
index d75d916..0eca987 100644

Lines of this file are not shown. View the raw message.

man/lvmlockd.8.in new file +755 -0

755 lines not on this page · raw message

man/lvmsystemid.7.in +19 -6
index 76b0e83..37a01af 100644

Lines of this file are not shown. View the raw message.

nix/default.nix +1 -0
index cd2fd33..c7462a0 100644

Lines of this file are not shown. View the raw message.

scripts/Makefile.in +6 -0
index e9cce3a..2ae5325 100644

Lines of this file are not shown. View the raw message.

scripts/lvm2_lvmlockd_systemd_red_hat.service.in new file +16 -0
new file mode 100644
index 0000000..17c7dbf

Lines of this file are not shown. View the raw message.

scripts/lvm2_lvmlocking_systemd_red_hat.service.in new file +24 -0
new file mode 100644
index 0000000..bfac578

Lines of this file are not shown. View the raw message.

spec/build.inc +2 -0
index 3979073..db9bcc2 100644

Lines of this file are not shown. View the raw message.

spec/packages.inc +15 -0
index b9caa65..8d2195a 100644

Lines of this file are not shown. View the raw message.

spec/source.inc +2 -0
index a11f4b7..00d5282 100644

Lines of this file are not shown. View the raw message.

test/Makefile.in +30 -0
index cd2c425..bba33db 100644

Lines of this file are not shown. View the raw message.

test/lib/aux.sh +10 -0
index 53ebd8a..459e7f1 100644

Lines of this file are not shown. View the raw message.

test/lib/flavour-udev-lvmlockd-dlm.sh new file +6 -0
new file mode 100644
index 0000000..5bd2749

Lines of this file are not shown. View the raw message.

test/lib/flavour-udev-lvmlockd-sanlock.sh new file +6 -0
new file mode 100644
index 0000000..859ee2e

Lines of this file are not shown. View the raw message.

test/lib/inittest.sh +7 -0
index 0b898f3..a5eeb57 100644

Lines of this file are not shown. View the raw message.

test/lib/test-corosync-conf new file +19 -0
new file mode 100644
index 0000000..ccc958f

Lines of this file are not shown. View the raw message.

test/lib/test-dlm-conf new file +4 -0
new file mode 100644
index 0000000..a93c93f

Lines of this file are not shown. View the raw message.

test/lib/test-sanlock-conf new file +2 -0
new file mode 100644
index 0000000..d1df598

Lines of this file are not shown. View the raw message.

test/lib/utils.sh +2 -0
index fe7ccd3..24c9076 100644

Lines of this file are not shown. View the raw message.

test/shell/dlm-hello-world.sh new file +27 -0
new file mode 100644
index 0000000..3f5fc57

Lines of this file are not shown. View the raw message.

test/shell/dlm-prepare.sh new file +90 -0

90 lines not on this page · raw message

test/shell/dlm-remove.sh new file +20 -0
new file mode 100644
index 0000000..d7af46f

Lines of this file are not shown. View the raw message.

test/shell/process-each-lv.sh +7 -7
index 78eb14e..52c97d4 100644

Lines of this file are not shown. View the raw message.

test/shell/process-each-pv.sh +9 -233

242 lines not on this page · raw message

test/shell/process-each-vg.sh +36 -36

72 lines not on this page · raw message

test/shell/process-each-vgreduce.sh new file +327 -0

327 lines not on this page · raw message

test/shell/sanlock-hello-world.sh new file +27 -0
new file mode 100644
index 0000000..23cdc34

Lines of this file are not shown. View the raw message.

test/shell/sanlock-prepare.sh new file +86 -0

86 lines not on this page · raw message

test/shell/sanlock-remove.sh new file +28 -0
new file mode 100644
index 0000000..47487d6

Lines of this file are not shown. View the raw message.

tools/args.h +5 -0
index 7f7667d..c887774 100644

Lines of this file are not shown. View the raw message.

tools/commands.h +22 -21

43 lines not on this page · raw message

tools/lvchange.c +32 -0
index 1e1c0fe..2a57abb 100644

Lines of this file are not shown. View the raw message.

tools/lvconvert.c +126 -5

131 lines not on this page · raw message

tools/lvcreate.c +15 -1
index e41f76c..f316767 100644

Lines of this file are not shown. View the raw message.

tools/lvmcmdline.c +55 -2

57 lines not on this page · raw message

tools/lvrename.c +5 -1
index eeff76d..6bbf31b 100644

Lines of this file are not shown. View the raw message.

tools/lvresize.c +5 -1
index 08248bb..30ac4f9 100644

Lines of this file are not shown. View the raw message.

tools/polldaemon.c +40 -7

47 lines not on this page · raw message

tools/pvchange.c +8 -0
index 3e0894f..91e93c1 100644

Lines of this file are not shown. View the raw message.

tools/pvcreate.c +4 -0
index 1398198..1f45ad9 100644

Lines of this file are not shown. View the raw message.

tools/pvmove.c +58 -5

63 lines not on this page · raw message

tools/pvremove.c +4 -0
index b40ff79..e6ae866 100644

Lines of this file are not shown. View the raw message.

tools/pvresize.c +8 -0
index 3057a7f..0b055e6 100644

Lines of this file are not shown. View the raw message.

tools/pvscan.c +5 -2
index 51f5d2b..844aabd 100644

Lines of this file are not shown. View the raw message.

tools/reporter.c +8 -0
index eb6a4ed..c7a927b 100644

Lines of this file are not shown. View the raw message.

tools/toollib.c +276 -51

327 lines not on this page · raw message

tools/tools.h +4 -2
index e959d80..675867d 100644

Lines of this file are not shown. View the raw message.

tools/vgchange.c +400 -2

402 lines not on this page · raw message

tools/vgcreate.c +47 -0

47 lines not on this page · raw message

tools/vgextend.c +4 -0
index de6d862..581c211 100644

Lines of this file are not shown. View the raw message.

tools/vgmerge.c +12 -1
index a17a636..c5ac332 100644

Lines of this file are not shown. View the raw message.

tools/vgreduce.c +10 -2
index 0adf1bb..693f538 100644

Lines of this file are not shown. View the raw message.

tools/vgremove.c +19 -0
index fd97356..692d114 100644

Lines of this file are not shown. View the raw message.

tools/vgrename.c +20 -4
index 860ccf1..188061b 100644

Lines of this file are not shown. View the raw message.

tools/vgsplit.c +14 -3
index 53f3975..7605bc4 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Part of the diff is not shown here. View the raw message.