targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE");
/* If we ever need this for other types than "linear", remember to update
udisks-dm-export.c as well. */
- if (targets_type == NULL || !(g_strcmp0 (targets_type[0], "linear") == 0 ||
- g_strcmp0 (targets_type[0], "multipath") == 0))
+ if (targets_type == NULL || g_strcmp0 (targets_type[0], "linear") != 0)
goto out;
targets_params = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_PARAMS");
/* Set target_params for known-safe and known-needed target types only. In particular,
* we must not export it for "crypto", since that would expose
* information about the key. */
- if ((g_strcmp0 (target_type, "linear") == 0 ||
- g_strcmp0 (target_type, "multipath") == 0)
- && params != NULL && strlen (params) > 0)
+ if (g_strcmp0 (target_type, "linear") == 0 && params != NULL && strlen (params) > 0)
{
_udev_util_encode_string (params, buf, sizeof (buf));
g_string_append (params_str, buf);