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:
parent
5c6120186d
commit
845a65a755
@ -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)
|
int vgmknodes(struct cmd_context *cmd, int argc, char **argv)
|
||||||
{
|
{
|
||||||
if (!lv_mknodes(cmd, NULL))
|
if (!dm_udev_get_sync_support()) {
|
||||||
return_ECMD_FAILED;
|
if (!lv_mknodes(cmd, NULL))
|
||||||
|
return_ECMD_FAILED;
|
||||||
|
}
|
||||||
|
|
||||||
return process_each_lv(cmd, argc, argv, NULL, NULL, LCK_VG_READ, NULL, NULL, &_vgmknodes_single);
|
return process_each_lv(cmd, argc, argv, NULL, NULL, LCK_VG_READ, NULL, NULL, &_vgmknodes_single);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user