1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

tools: vgmknodes: handle /dev/mapper content without LV refresh only if udev not running

This commit is contained in:
Peter Rajnoha 2024-08-14 13:53:17 +02:00
parent 5c6120186d
commit 845a65a755
No known key found for this signature in database
GPG Key ID: E776664036DF84AB

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