This patch configures the dm_task to use the DM_UDEV_DISABLE_LIBRARY_FALLBACK udev flag to prevent calls to dm_mknodes() from using the library fallback code.
Another possible fix would be to obtain a different return code from vgscan.c where it does not detect any VGs and then calls the mknode path due to the argument passed to the cli
This patch configures the dm_task to use the DM_UDEV_ DISABLE_ LIBRARY_ FALLBACK udev flag to prevent calls to dm_mknodes() from using the library fallback code.
Another possible fix would be to obtain a different return code from vgscan.c where it does not detect any VGs and then calls the mknode path due to the argument passed to the cli
maxret = process_ each_vg( cmd, argc, argv, NULL, NULL, 0, 0, NULL, &_vgscan_single);
/* at this point, this could return some indication if vgs were found
such that we could skip the vgmknodes() if no vgs were found */
if (arg_is_set(cmd, mknodes_ARG)) {
ret = vgmknodes(cmd, argc, argv);
if (ret > maxret)
maxret = ret;
}