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

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