forked from rpms/libblockdev
- Search for the LVM DBus service in activatable names (vpodzime) - Better check for the LVM DBus API (vpodzime)
31 lines
1.2 KiB
Diff
31 lines
1.2 KiB
Diff
From 950a164f1954c85f5e757ec3fb925150b8623031 Mon Sep 17 00:00:00 2001
|
|
From: Vratislav Podzimek <vpodzime@redhat.com>
|
|
Date: Tue, 15 Mar 2016 11:03:13 +0100
|
|
Subject: [PATCH 2/2] Search for the LVM DBus service in activatable names
|
|
|
|
ListNames() gives names of services that are already
|
|
running. ListActivatableNames() gives a list of services that are either running
|
|
or activatable (support auto-start).
|
|
|
|
Signed-off-by: Vratislav Podzimek <vpodzime@redhat.com>
|
|
---
|
|
src/plugins/lvm-dbus.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/plugins/lvm-dbus.c b/src/plugins/lvm-dbus.c
|
|
index e21568f..07363c4 100644
|
|
--- a/src/plugins/lvm-dbus.c
|
|
+++ b/src/plugins/lvm-dbus.c
|
|
@@ -215,7 +215,7 @@ gboolean check() {
|
|
}
|
|
|
|
ret = g_dbus_connection_call_sync (bus, DBUS_TOP_IFACE, DBUS_TOP_OBJ, DBUS_TOP_IFACE,
|
|
- "ListNames", NULL, NULL, G_DBUS_CALL_FLAGS_NONE,
|
|
+ "ListActivatableNames", NULL, NULL, G_DBUS_CALL_FLAGS_NONE,
|
|
-1, NULL, &error);
|
|
if (!ret) {
|
|
g_critical ("Failed to get available DBus services: %s", error->message);
|
|
--
|
|
2.5.0
|
|
|