Skip to contentSkip to conversation

master - Remove lvmetad

PATCH David Teigland 1 participant 1 message Jul 11, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=117160b27e510dceb1ed6acf995115c040acd88d
Commit:        117160b27e510dceb1ed6acf995115c040acd88d
Parent:        edf3f86184a380994e383b9884364e702e4ac647
Author:        David Teigland <[email protected]>
AuthorDate:    Tue Jul 10 13:39:29 2018 -0500
Committer:     David Teigland <[email protected]>
CommitterDate: Wed Jul 11 11:26:42 2018 -0500

Remove lvmetad

Native disk scanning is now both reduced and
async/parallel, which makes it comparable in
performance (and often faster) when compared
to lvm using lvmetad.

Autoactivation now uses local temp files to record online PVs, and no longer requires lvmetad.

There should be no apparent command-level change
in behavior.

---
 Makefile.in                      |    3 +-
 configure.ac                     |   47 -
 daemons/lvmetad/.gitignore       |    2 -
 daemons/lvmetad/Makefile.in      |   64 -
 daemons/lvmetad/lvmetactl.c      |  249 ---
 daemons/lvmetad/lvmetad-client.h |   90 --
 daemons/lvmetad/lvmetad-core.c   | 3010 -------------------------------------
 daemons/lvmetad/test.sh          |   16 -
 daemons/lvmetad/testclient.c     |  147 --
 daemons/lvmlockd/lvmlockd-core.c |  135 +--
 include/Makefile.in              |    2 -
 lib/Makefile.in                  |    5 -
 lib/cache/lvmcache.c             |   68 +-
 lib/cache/lvmcache.h             |    3 -
 lib/cache/lvmetad.c              | 3075 --------------------------------------
 lib/cache/lvmetad.h              |  213 ---
 lib/commands/toolcontext.c       |  131 +--
 lib/commands/toolcontext.h       |    1 -
 lib/config/config_settings.h     |   44 +-
 lib/format_text/archiver.c       |    1 -
 lib/format_text/format-text.c    |   61 -
 lib/format_text/import.c         |    6 -
 lib/format_text/import_vsn1.c    |   27 +-
 lib/label/label.h                |    2 -
 lib/locking/locking.h            |    2 -
 lib/locking/lvmlockd.c           |   62 +-
 lib/metadata/metadata.c          |  104 +--
 lib/metadata/metadata.h          |    2 -
 lib/metadata/vg.c                |    7 -
 lib/metadata/vg.h                |   20 -
 tools/Makefile.in                |    4 -
 tools/args.h                     |    7 +-
 tools/command-lines.in           |   17 +-
 tools/command.c                  |    1 -
 tools/commands.h                 |   11 +-
 tools/lvchange.c                 |   14 -
 tools/lvmcmdline.c               |   56 +-
 tools/lvscan.c                   |   62 +-
 tools/polldaemon.c               |   22 +-
 tools/pvcreate.c                 |   11 -
 tools/pvdisplay.c                |   17 -
 tools/pvscan.c                   |  567 +-------
 tools/reporter.c                 |    5 +-
 tools/toollib.c                  |   24 +-
 tools/tools.h                    |    6 +-
 tools/vgcfgrestore.c             |   35 +-
 tools/vgchange.c                 |   14 -
 tools/vgck.c                     |    1 -
 tools/vgcreate.c                 |    3 +-
 tools/vgimport.c                 |   20 -
 tools/vgimportclone.c            |   25 -
 tools/vgmerge.c                  |    1 -
 tools/vgrename.c                 |    4 +-
 tools/vgscan.c                   |   66 +-
 tools/vgsplit.c                  |    7 -
 55 files changed, 102 insertions(+), 8497 deletions(-)
Makefile.in +1 -2
index d076088..6a1a990 100644
@@ -83,7 +83,7 @@ endif
 DISTCLEAN_TARGETS += cscope.out
 CLEAN_DIRS += autom4te.cache
 
-check check_system check_cluster check_local check_lvmetad check_lvmpolld check_lvmlockd_test check_lvmlockd_dlm check_lvmlockd_sanlock: test
+check check_system check_cluster check_local check_lvmpolld check_lvmlockd_test check_lvmlockd_dlm check_lvmlockd_sanlock: test
 	$(MAKE) -C test $(@)
 
 conf.generate man.generate: tools
@@ -153,7 +153,6 @@ LCOV_TRACES = libdm.info lib.info tools.info \
 	test/unit.info \
 	daemons/clvmd.info \
 	daemons/dmeventd.info \
-	daemons/lvmetad.info \
 	daemons/lvmlockd.info \
 	daemons/lvmpolld.info
 
configure.ac +0 -47

102 lines not on this page · raw message

daemons/lvmetad/.gitignore deleted +0 -2
deleted file mode 100644
index 773097e..0000000
@@ -1,2 +0,0 @@
-lvmetad
-lvmetactl
daemons/lvmetad/Makefile.in deleted +0 -64

64 lines not on this page · raw message

daemons/lvmetad/lvmetactl.c deleted +0 -249

249 lines not on this page · raw message

daemons/lvmetad/lvmetad-client.h deleted +0 -90

90 lines not on this page · raw message

daemons/lvmetad/lvmetad-core.c deleted +0 -3010

2,478 lines not on this page · raw message

daemons/lvmetad/test.sh deleted +0 -16
deleted file mode 100755
index f937562..0000000

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

daemons/lvmetad/testclient.c deleted +0 -147

147 lines not on this page · raw message

daemons/lvmlockd/lvmlockd-core.c +24 -111

135 lines not on this page · raw message

include/Makefile.in +0 -2
index 7993998..dd5dd68 100644

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

lib/Makefile.in +0 -5
index 737208b..1b170ee 100644

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

lib/cache/lvmcache.c +5 -63

68 lines not on this page · raw message

lib/cache/lvmcache.h +0 -3
index 92e27a2..ba60405 100644

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

lib/cache/lvmetad.c deleted +0 -3075

3,075 lines not on this page · raw message

lib/cache/lvmetad.h deleted +0 -213

213 lines not on this page · raw message

lib/commands/toolcontext.c +9 -122

131 lines not on this page · raw message

lib/commands/toolcontext.h +0 -1
index 2b730ea..3c7ef54 100644

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

lib/config/config_settings.h +8 -36

44 lines not on this page · raw message

lib/format_text/archiver.c +0 -1
index 5cdbf6d..34eff55 100644

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

lib/format_text/format-text.c +0 -61

61 lines not on this page · raw message

lib/format_text/import.c +0 -6
index 0836662..d487100 100644

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

lib/format_text/import_vsn1.c +5 -22
index 15d4422..c9b9275 100644

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

lib/label/label.h +0 -2
index b86bf2b..a353a67 100644

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

lib/locking/locking.h +0 -2
index b2b69b8..2e2e992 100644

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

lib/locking/lvmlockd.c +2 -60

62 lines not on this page · raw message

lib/metadata/metadata.c +1 -103

104 lines not on this page · raw message

lib/metadata/metadata.h +0 -2
index 1c4be48..164fba2 100644

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

lib/metadata/vg.c +0 -7
index 20c2aec..a9cb541 100644

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

lib/metadata/vg.h +0 -20
index 4c70406..3fd4756 100644

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

tools/Makefile.in +0 -4
index 7d9dd93..e21ca63 100644

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

tools/args.h +3 -4
index 0d4d3bc..9e83b12 100644

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

tools/command-lines.in +5 -12
index bf36738..6192b03 100644

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

tools/command.c +0 -1
index eefc124..42f9aa3 100644

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

tools/commands.h +5 -6
index 4af92c8..ef5763b 100644

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

tools/lvchange.c +0 -14
index 6282a6f..07a578b 100644

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

tools/lvmcmdline.c +2 -54

56 lines not on this page · raw message

tools/lvscan.c +3 -59

62 lines not on this page · raw message

tools/polldaemon.c +7 -15
index 7ad45ca..8772476 100644

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

tools/pvcreate.c +0 -11
index 0af9d49..4ffb12f 100644

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

tools/pvdisplay.c +0 -17
index 5f033f3..3c97a7f 100644

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

tools/pvscan.c +9 -558

567 lines not on this page · raw message

tools/reporter.c +1 -4
index faaff37..cd2a41e 100644

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

tools/toollib.c +2 -22
index 62e1ecf..36ae125 100644

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

tools/tools.h +3 -3
index d605768..405910f 100644

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

tools/vgcfgrestore.c +1 -34
index 0dd7d4d..84032f1 100644

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

tools/vgchange.c +0 -14
index fa0fd53..c8f894d 100644

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

tools/vgck.c +0 -1
index 54bc9d6..a126c29 100644

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

tools/vgcreate.c +1 -2
index 94f95ec..2a40bc7 100644

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

tools/vgimport.c +0 -20
index 8ef8709..26c6363 100644

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

tools/vgimportclone.c +0 -25
index e37b897..b7fae61 100644

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

tools/vgmerge.c +0 -1
index eab3d56..f2c785b 100644

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

tools/vgrename.c +1 -3
index 2e6157f..5e386cc 100644

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

tools/vgscan.c +4 -62

66 lines not on this page · raw message

tools/vgsplit.c +0 -7
index 7ec00f8..5824c82 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.