Skip to content

Commit

Permalink
daemon: Make libblockdev plugin initialization error fatal
Browse files Browse the repository at this point in the history
It makes no sense to continue running the daemon in a zombie state,
returning random errors at various places.
  • Loading branch information
tbzatek committed Jun 9, 2022
1 parent fb41d80 commit ff5fddb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/udisksdaemon.c
Expand Up @@ -358,12 +358,10 @@ udisks_daemon_constructed (GObject *object)
}
else
{
/* a missing plugin is okay, calling functions from it will fail, but
until that happens, life will just be great */
for (plugin_p=plugins; *plugin_p; plugin_p++)
for (plugin_p = plugins; *plugin_p; plugin_p++)
if (!bd_is_plugin_available ((*plugin_p)->name))
udisks_warning ("Failed to load the '%s' libblockdev plugin",
bd_get_plugin_name ((*plugin_p)->name));
udisks_error ("Failed to load the '%s' libblockdev plugin",
bd_get_plugin_name ((*plugin_p)->name));
}
}

Expand Down

0 comments on commit ff5fddb

Please sign in to comment.