goto continue_loop;
}
- symlinks = udisks_block_device_get_symlinks (block->iface_block_device);
- if (symlinks != NULL)
+ if (g_strcmp0 (device, udisks_block_device_get_device (block->iface_block_device)) == 0)
{
- for (n = 0; symlinks[n] != NULL; n++)
+ ret = g_list_prepend (ret, g_object_ref (entry));
+ }
+ else
+ {
+ symlinks = udisks_block_device_get_symlinks (block->iface_block_device);
+ if (symlinks != NULL)
{
- if (g_strcmp0 (device, symlinks[n]) == 0)
+ for (n = 0; symlinks[n] != NULL; n++)
{
- ret = g_list_prepend (ret, g_object_ref (entry));
+ if (g_strcmp0 (device, symlinks[n]) == 0)
+ {
+ ret = g_list_prepend (ret, g_object_ref (entry));
+ }
}
}
}
goto continue_loop;
}
- symlinks = udisks_block_device_get_symlinks (block->iface_block_device);
- if (symlinks != NULL)
+ if (g_strcmp0 (device, udisks_block_device_get_device (block->iface_block_device)) == 0)
{
- for (n = 0; symlinks[n] != NULL; n++)
+ ret = g_list_prepend (ret, g_object_ref (entry));
+ }
+ else
+ {
+ symlinks = udisks_block_device_get_symlinks (block->iface_block_device);
+ if (symlinks != NULL)
{
- if (g_strcmp0 (device, symlinks[n]) == 0)
+ for (n = 0; symlinks[n] != NULL; n++)
{
- ret = g_list_prepend (ret, g_object_ref (entry));
+ if (g_strcmp0 (device, symlinks[n]) == 0)
+ {
+ ret = g_list_prepend (ret, g_object_ref (entry));
+ }
}
}
}