From 75f9b0c25acb5141010e9f3629ff287c574181a4 Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Wed, 14 Aug 2024 13:07:25 +0200 Subject: [PATCH] tools: vgmknodes: wait for udev first with --refresh, then check /dev --- WHATS_NEW | 1 + tools/vgmknodes.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/WHATS_NEW b/WHATS_NEW index 19c7ede5b..352524453 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.03.26 - ================== + Fix vgmknodes --refresh to wait for udev before checking /dev content. Use log/report_command_log=1 config setting by default for JSON output format. lvextend fix unreleased memory pools on RAID diff --git a/tools/vgmknodes.c b/tools/vgmknodes.c index 9942af7b2..a5d0beee7 100644 --- a/tools/vgmknodes.c +++ b/tools/vgmknodes.c @@ -18,9 +18,11 @@ static int _vgmknodes_single(struct cmd_context *cmd, struct logical_volume *lv, struct processing_handle *handle __attribute__((unused))) { - if (arg_is_set(cmd, refresh_ARG) && lv_is_visible(lv)) + if (arg_is_set(cmd, refresh_ARG) && lv_is_visible(lv)) { if (!lv_refresh(cmd, lv)) return_ECMD_FAILED; + sync_local_dev_names(cmd); + } if (!lv_mknodes(cmd, lv)) return_ECMD_FAILED; -- 2.43.5