summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2012-01-26 11:07:45 -0500
committerDavid Zeuthen <davidz@redhat.com>2012-01-26 11:07:45 -0500
commitdf8b4978956db53eba8406406deeb575e50d0483 (patch)
treead1141c2cf61e66c5fb322319982c3fbe6322ad3
parent830e829cc595a1889dbf7b89536ab5dbecd67273 (diff)
Do coldplug for block devices twice
Otherwise we may miss some associations between LUKS devices and other block devices. This bug only became evident once we started sorting block devices before processing them. Signed-off-by: David Zeuthen <davidz@redhat.com>
-rw-r--r--src/udiskslinuxprovider.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/udiskslinuxprovider.c b/src/udiskslinuxprovider.c
index 1dd4db5..ed05b99 100644
--- a/src/udiskslinuxprovider.c
+++ b/src/udiskslinuxprovider.c
@@ -241,6 +241,8 @@ udisks_linux_provider_start (UDisksProvider *_provider)
devices = g_list_sort (devices, (GCompareFunc) udev_device_name_cmp);
for (l = devices; l != NULL; l = l->next)
udisks_linux_provider_handle_uevent (provider, "add", G_UDEV_DEVICE (l->data));
+ for (l = devices; l != NULL; l = l->next)
+ udisks_linux_provider_handle_uevent (provider, "add", G_UDEV_DEVICE (l->data));
g_list_foreach (devices, (GFunc) g_object_unref, NULL);
g_list_free (devices);