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;                                                      
    }                        


** Patch added: "disable-library-fallback-in-vgscan-mknodes.patch"
   
https://bugs.launchpad.net/ubuntu/+source/lvm2/+bug/1874501/+attachment/5362656/+files/disable-library-fallback-in-vgscan-mknodes.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1874501

Title:
  vgscan --mknodes creates block device multipath nodes in /dev/mapper

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-z-systems/+bug/1874501/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to