neil / rpms / udisks2

Forked from rpms/udisks2 a year ago
Clone

Blame SOURCES/udisks-2.9.2-udiskslinuxmanager-Trigger-uevent-after-loop-device-setup.patch

20ccde
From 7fe04e70dc5a5ccf621a0beacc6d4b9e904037df Mon Sep 17 00:00:00 2001
20ccde
From: Tomas Bzatek <tbzatek@redhat.com>
20ccde
Date: Fri, 13 Nov 2020 16:57:24 +0100
20ccde
Subject: [PATCH 2/2] udiskslinuxmanager: Trigger uevent after loop device
20ccde
 setup
20ccde
20ccde
---
20ccde
 src/udiskslinuxmanager.c | 3 +++
20ccde
 1 file changed, 3 insertions(+)
20ccde
20ccde
diff --git a/src/udiskslinuxmanager.c b/src/udiskslinuxmanager.c
20ccde
index 1bbf980a..e0a83a80 100644
20ccde
--- a/src/udiskslinuxmanager.c
20ccde
+++ b/src/udiskslinuxmanager.c
20ccde
@@ -430,6 +430,9 @@ handle_loop_setup (UDisksManager          *object,
20ccde
   error = NULL;
20ccde
   wait_data.loop_device = loop_device;
20ccde
   wait_data.path = path;
20ccde
+  udisks_daemon_util_trigger_uevent_sync (manager->daemon,
20ccde
+                                          loop_device,
20ccde
+                                          UDISKS_DEFAULT_WAIT_TIMEOUT);
20ccde
   loop_object = udisks_daemon_wait_for_object_sync (manager->daemon,
20ccde
                                                     wait_for_loop_object,
20ccde
                                                     &wait_data,
20ccde
-- 
20ccde
2.26.2
20ccde