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