mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-17 06:04:23 +03:00
tools: vgmknodes: wait for udev first with --refresh, then check /dev
This commit is contained in:
parent
bec1860531
commit
75f9b0c25a
@ -1,5 +1,6 @@
|
|||||||
Version 2.03.26 -
|
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.
|
Use log/report_command_log=1 config setting by default for JSON output format.
|
||||||
lvextend fix unreleased memory pools on RAID
|
lvextend fix unreleased memory pools on RAID
|
||||||
|
|
||||||
|
@ -18,9 +18,11 @@
|
|||||||
static int _vgmknodes_single(struct cmd_context *cmd, struct logical_volume *lv,
|
static int _vgmknodes_single(struct cmd_context *cmd, struct logical_volume *lv,
|
||||||
struct processing_handle *handle __attribute__((unused)))
|
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))
|
if (!lv_refresh(cmd, lv))
|
||||||
return_ECMD_FAILED;
|
return_ECMD_FAILED;
|
||||||
|
sync_local_dev_names(cmd);
|
||||||
|
}
|
||||||
|
|
||||||
if (!lv_mknodes(cmd, lv))
|
if (!lv_mknodes(cmd, lv))
|
||||||
return_ECMD_FAILED;
|
return_ECMD_FAILED;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user