udisks icon indicating copy to clipboard operation
udisks copied to clipboard

List available modules

Open paulmenzel opened this issue 5 years ago • 8 comments

The configuration file udisks2.conf has a modules whitelist directive.

# Comma separated list of modules to load.
# Use asterisk to load all the modules.
modules=*

How can I list all available modules?

paulmenzel avatar Mar 04 '19 12:03 paulmenzel

There's no API for that, modules are supposed to be mostly internal feature. See the related commit to this configuration file: https://github.com/storaged-project/udisks/commit/818b7b29b0d8fee43994646a944d046b1cf47633

tbzatek avatar Mar 06 '19 13:03 tbzatek

On 03/06/19 15:28, Tomáš Bžatek wrote:

There's no API for that, modules are supposed to be mostly internal feature. See the related commit to this configuration file: https://github.com/storaged-project/udisks/commit/818b7b29b0d8fee43994646a944d046b1cf47633 Thank you for the answer and reference.

In my case, I’d like to disable the plugin mdraid to get rid of a warning. But there is only a white list in the configuration file, so I wanted to find the list of all the other modules.

paulmenzel avatar Mar 06 '19 14:03 paulmenzel

Well mdraid is not a plugin, it's an integral part of the core since early days of udisks2. Perhaps we could fix the issue leading to the warning.

tbzatek avatar Mar 06 '19 14:03 tbzatek

On 03/06/19 15:59, Tomáš Bžatek wrote:

Well mdraid is not a plugin, it's an integral part of the core since early days of udisks2. Perhaps we could fix the issue leading to the warning.

The message below is logged.

Failed to load the 'mdraid' libblockdev plugin.

But I do not want to install libbd_mdraid.so.2, because in Debian the package depends on mdadm, which I do not need.

paulmenzel avatar Mar 06 '19 15:03 paulmenzel

That's a valid warning, I wonder that it's not fatal. I would expect udisksd crashing once any mdraid device shows up. It's an unsupported combination and most likely a packaging issue.

Making mdraid and cryptsetup support optional is being discussed.

tbzatek avatar Mar 06 '19 16:03 tbzatek

On 03/06/19 17:19, Tomáš Bžatek wrote:

That's a valid warning, I wonder that it's not fatal. I would expect udisksd crashing once any mdraid device shows up. It's an unsupported combination and most likely a packaging issue.

That’s the thing. I know there is no and never will be an mdraid device, and just cryptsetup.

Making mdraid and cryptsetup support optional is being discussed.

Understood. That’d be great.

So, what to do regarding this issue? Close it, as it’s not a request, which will be implemented?

paulmenzel avatar Mar 06 '19 16:03 paulmenzel

Is there any update? Udisks 2.8.4 even depends on blockdev_crypto.

if test "x$have_crypto" = "xno"; then
  AC_MSG_ERROR([BLOCKDEV CRYPTO support requested but header or library not found])
fi

paulmenzel avatar Sep 27 '19 14:09 paulmenzel

Would be great to have a possibility to disable a given plugin in order to suppress the warning messages:

2022-08-17 23:04:05.141263 udisksd[3857]: failed to load module mdraid: libbd_mdraid.so.2: cannot open shared object file: No such file or directory
2022-08-17 23:04:05.410039 udisksd[3857]: Failed to load the 'mdraid' libblockdev plugin

udisks2-2.9.2-2+deb11u1 in Debian bullseye.

dmak avatar Aug 18 '22 00:08 dmak