]> sourceware.org Git - lvm2.git/commitdiff
tools: vgmknodes: handle /dev/mapper content without LV refresh only if udev not... 1413141350
authorPeter Rajnoha <prajnoha@redhat.com>
Wed, 14 Aug 2024 11:53:17 +0000 (13:53 +0200)
committerPeter Rajnoha <prajnoha@redhat.com>
Wed, 14 Aug 2024 11:53:17 +0000 (13:53 +0200)
tools/vgmknodes.c

index d37e62f8d3b6c4ccc92d274e24e5386d47130b80..d1e785ba66ad160449261abacf3b42292d753f40 100644 (file)
@@ -34,8 +34,10 @@ static int _vgmknodes_single(struct cmd_context *cmd, struct logical_volume *lv,
 
 int vgmknodes(struct cmd_context *cmd, int argc, char **argv)
 {
-       if (!lv_mknodes(cmd, NULL))
-               return_ECMD_FAILED;
+       if (!dm_udev_get_sync_support()) {
+               if (!lv_mknodes(cmd, NULL))
+                       return_ECMD_FAILED;
+       }
 
        return process_each_lv(cmd, argc, argv, NULL, NULL, LCK_VG_READ, NULL, NULL, &_vgmknodes_single);
 }
This page took 0.032162 seconds and 5 git commands to generate.