- Try to search for "RAID Level" in mdadm's output (vpodzime) - Fix the number passed to LVM DBus as a job-creation timeout (vpodzime)
31 lines
1.0 KiB
Diff
31 lines
1.0 KiB
Diff
From ad4679efb8ae455d984aa78bb7e264af9646ea29 Mon Sep 17 00:00:00 2001
|
|
From: Vratislav Podzimek <vpodzime@redhat.com>
|
|
Date: Fri, 30 Sep 2016 12:18:01 +0200
|
|
Subject: [PATCH 1/2] Fix the number passed to LVM DBus as a job-creation
|
|
timeout
|
|
|
|
It's in seconds not milliseconds like the DBus method call timeout.
|
|
|
|
Resolves: rhbz#1378970
|
|
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 844e36e..9500dcb 100644
|
|
--- a/src/plugins/lvm-dbus.c
|
|
+++ b/src/plugins/lvm-dbus.c
|
|
@@ -58,7 +58,7 @@ static gchar *global_config_str = NULL;
|
|
#define DBUS_PROPS_IFACE "org.freedesktop.DBus.Properties"
|
|
#define DBUS_INTRO_IFACE "org.freedesktop.DBus.Introspectable"
|
|
#define DBUS_LONG_CALL_TIMEOUT 10000 /* msecs */
|
|
-#define METHOD_CALL_TIMEOUT (DBUS_LONG_CALL_TIMEOUT / 2)
|
|
+#define METHOD_CALL_TIMEOUT (DBUS_LONG_CALL_TIMEOUT / 2) / 1000 /* secs */
|
|
|
|
static GDBusConnection *bus = NULL;
|
|
|
|
--
|
|
2.7.4
|
|
|