Skip to contentSkip to conversation

master - lvmdbus: Add new daemon.

PATCH Alasdair Kergon 1 participant 1 message Feb 18, 2016 Kbuild

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=5987562cf924090affc656e05ae484ead516da30
Commit:        5987562cf924090affc656e05ae484ead516da30
Parent:        055c628e38589bf1ea66bc0b2c5da36ed115b551
Author:        Alasdair G Kergon <[email protected]>
AuthorDate:    Wed Feb 17 23:53:35 2016 +0000
Committer:     Alasdair G Kergon <[email protected]>
CommitterDate: Wed Feb 17 23:53:35 2016 +0000

lvmdbus: Add new daemon.

---
 .gitignore                                       |    2 +
 WHATS_NEW                                        |    2 +
 aclocal.m4                                       |  311 +++++++-
 autoconf/py-compile                              |  170 ++++
 configure                                        |  996 +++++++++++++++++++--
 configure.in                                     |   90 ++-
 daemons/Makefile.in                              |    6 +-
 daemons/lvmdbusd/Makefile.in                     |   65 ++
 daemons/lvmdbusd/__init__.py                     |   10 +
 daemons/lvmdbusd/automatedproperties.py          |  175 ++++
 daemons/lvmdbusd/background.py                   |  195 ++++
 daemons/lvmdbusd/cfg.py                          |   80 ++
 daemons/lvmdbusd/cmdhandler.py                   |  619 +++++++++++++
 daemons/lvmdbusd/fetch.py                        |   30 +
 daemons/lvmdbusd/job.py                          |  170 ++++
 daemons/lvmdbusd/loader.py                       |   85 ++
 daemons/lvmdbusd/lv.py                           |  818 +++++++++++++++++
 daemons/lvmdbusd/lvm_shell_proxy.py              |  184 ++++
 daemons/lvmdbusd/lvmdb.py                        |  412 +++++++++
 daemons/lvmdbusd/lvmdbus.py                      |  140 +++
 daemons/lvmdbusd/lvmdbusd                        |   16 +
 daemons/lvmdbusd/manager.py                      |  241 +++++
 daemons/lvmdbusd/objectmanager.py                |  282 ++++++
 daemons/lvmdbusd/path.py.in                      |   10 +
 daemons/lvmdbusd/pv.py                           |  282 ++++++
 daemons/lvmdbusd/refresh.py                      |   45 +
 daemons/lvmdbusd/request.py                      |  140 +++
 daemons/lvmdbusd/state.py                        |   27 +
 daemons/lvmdbusd/udevwatch.py                    |   54 ++
 daemons/lvmdbusd/utils.py                        |  388 ++++++++
 daemons/lvmdbusd/vg.py                           |  936 +++++++++++++++++++
 make.tmpl.in                                     |   14 +-
 man/Makefile.in                                  |    9 +-
 man/lvmdbusd.8.in                                |   38 +
 python/Makefile.in                               |   16 +-
 scripts/Makefile.in                              |   15 +-
 scripts/com.redhat.lvmdbus1.conf                 |   13 +
 scripts/com.redhat.lvmdbus1.service.in           |    5 +
 scripts/lvm2_lvmdbusd_systemd_red_hat.service.in |   11 +
 test/dbus/lvmdbustest.py                         | 1053 ++++++++++++++++++++++
 40 files changed, 8076 insertions(+), 79 deletions(-)
.gitignore +2 -0
index 19181c9..a890cee 100644
@@ -7,6 +7,8 @@
 *.orig
 *.pc
 *.pot
+*.pyc
+*.pyo
 *.rej
 *.so
 *.so.*
WHATS_NEW +2 -0
index 48f2fb3..896ecce 100644
@@ -1,5 +1,7 @@
 Version 2.02.143 - 
 =====================================
+  Add configure --enable-dbus-service for an LVM D-Bus service.
+  Replace configure --enable-python-bindings with python2 and python3 vsns.
   If PV belongs to some VG and metadata missing, skip it if system ID is used.
   Automatically change PV header extension to latest version if writing PV/VG.
   Identify used PVs in pv_attr field by new 'u' character.
aclocal.m4 +310 -1

327 lines not on this page · raw message

autoconf/py-compile new file +170 -0

170 lines not on this page · raw message

configure +936 -56

1,167 lines not on this page · raw message

ing_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
@@ -14956,6 +15836,8 @@ do

     "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/thin/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/thin/Makefile" ;;
+    "daemons/lvmdbusd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/lvmdbusd/Makefile" ;;
+    "daemons/lvmdbusd/path.py") CONFIG_FILES="$CONFIG_FILES daemons/lvmdbusd/path.py" ;;
     "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" ;;
@@ -14993,12 +15875,14 @@ do
     "scripts/blk_availability_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/blk_availability_systemd_red_hat.service" ;;
     "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
     "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
+    "scripts/com.redhat.lvmdbus1.service") CONFIG_FILES="$CONFIG_FILES scripts/com.redhat.lvmdbus1.service" ;;
     "scripts/dm_event_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.service" ;;
     "scripts/dm_event_systemd_red_hat.socket") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.socket" ;;
     "scripts/lvm2_cluster_activation_red_hat.sh") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_cluster_activation_red_hat.sh" ;;
     "scripts/lvm2_cluster_activation_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_cluster_activation_systemd_red_hat.service" ;;
     "scripts/lvm2_clvmd_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_clvmd_systemd_red_hat.service" ;;
     "scripts/lvm2_cmirrord_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_cmirrord_systemd_red_hat.service" ;;
+    "scripts/lvm2_lvmdbusd_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmdbusd_systemd_red_hat.service" ;;
     "scripts/lvm2_lvmetad_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmetad_init_red_hat" ;;
     "scripts/lvm2_lvmetad_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmetad_systemd_red_hat.service" ;;
     "scripts/lvm2_lvmetad_systemd_red_hat.socket") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmetad_systemd_red_hat.socket" ;;
configure.in +77 -13

160 lines not on this page · raw message

daemons/Makefile.in +5 -1
index bbe75aa..2d43278 100644
@@ -44,8 +44,12 @@ ifeq ("@BUILD_LVMLOCKD@", "yes")
   SUBDIRS += lvmlockd 
 endif
 
+ifeq ("@BUILD_LVMDBUSD@", "yes")
+  SUBDIRS += lvmdbusd 
+endif
+
 ifeq ($(MAKECMDGOALS),distclean)
-  SUBDIRS = clvmd cmirrord dmeventd lvmetad lvmpolld lvmlockd
+  SUBDIRS = clvmd cmirrord dmeventd lvmetad lvmpolld lvmlockd lvmdbusd
 endif
 
 include $(top_builddir)/make.tmpl
daemons/lvmdbusd/Makefile.in new file +65 -0

65 lines not on this page · raw message

daemons/lvmdbusd/__init__.py new file +10 -0
new file mode 100644
index 0000000..b733884
@@ -0,0 +1,10 @@
+# Copyright (C) 2015-2016 Red Hat, Inc. All rights reserved.
+#
+# 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 General Public License v.2.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+from .lvmdbus import main
daemons/lvmdbusd/automatedproperties.py new file +175 -0

175 lines not on this page · raw message

daemons/lvmdbusd/background.py new file +195 -0

195 lines not on this page · raw message

daemons/lvmdbusd/cfg.py new file +80 -0

80 lines not on this page · raw message

daemons/lvmdbusd/cmdhandler.py new file +619 -0

619 lines not on this page · raw message

daemons/lvmdbusd/fetch.py new file +30 -0
new file mode 100644
index 0000000..51f130f
@@ -0,0 +1,30 @@
+# Copyright (C) 2015-2016 Red Hat, Inc. All rights reserved.
+#
+# This copyrighted material is made available to anyone wishing to use,
+# modify, copy, or redistribute it subject to the terms and conditions
[… more lines in the raw message]

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

daemons/lvmdbusd/job.py new file +170 -0

170 lines not on this page · raw message

daemons/lvmdbusd/loader.py new file +85 -0

85 lines not on this page · raw message

daemons/lvmdbusd/lv.py new file +818 -0

818 lines not on this page · raw message

daemons/lvmdbusd/lvm_shell_proxy.py new file +184 -0

184 lines not on this page · raw message

daemons/lvmdbusd/lvmdb.py new file +412 -0

412 lines not on this page · raw message

daemons/lvmdbusd/lvmdbus.py new file +140 -0

140 lines not on this page · raw message

daemons/lvmdbusd/lvmdbusd new file +16 -0
new file mode 100644
index 0000000..058ddf0

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

daemons/lvmdbusd/manager.py new file +241 -0

241 lines not on this page · raw message

daemons/lvmdbusd/objectmanager.py new file +282 -0

282 lines not on this page · raw message

daemons/lvmdbusd/path.py.in new file +10 -0
new file mode 100644
index 0000000..f0ef205

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

daemons/lvmdbusd/pv.py new file +282 -0

282 lines not on this page · raw message

daemons/lvmdbusd/refresh.py new file +45 -0

45 lines not on this page · raw message

daemons/lvmdbusd/request.py new file +140 -0

140 lines not on this page · raw message

daemons/lvmdbusd/state.py new file +27 -0
new file mode 100644
index 0000000..bbc5901

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

daemons/lvmdbusd/udevwatch.py new file +54 -0

54 lines not on this page · raw message

daemons/lvmdbusd/utils.py new file +388 -0

388 lines not on this page · raw message

daemons/lvmdbusd/vg.py new file +936 -0

936 lines not on this page · raw message

make.tmpl.in +12 -2
index a640851..d418cfb 100644

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

man/Makefile.in +7 -2
index 62034b2..2e0fd95 100644

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

man/lvmdbusd.8.in new file +38 -0
new file mode 100644
index 0000000..9e035f5

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

python/Makefile.in +13 -3
index 60d39ab..3dc5664 100644

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

scripts/Makefile.in +14 -1
index 80b2cbb..6df7d05 100644

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

scripts/com.redhat.lvmdbus1.conf new file +13 -0
new file mode 100644
index 0000000..80758c6

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

scripts/com.redhat.lvmdbus1.service.in new file +5 -0
new file mode 100644
index 0000000..e271b08

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

scripts/lvm2_lvmdbusd_systemd_red_hat.service.in new file +11 -0
new file mode 100644
index 0000000..d3ad870

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

test/dbus/lvmdbustest.py new file +1053 -0

1,053 lines not on this page · 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.