From 5c6120186d75fcc5ccf5ee1a442498f459937b4f Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Wed, 14 Aug 2024 13:50:22 +0200 Subject: [PATCH] tools: vgmknodes: log error message if LV refresh fails --- tools/vgmknodes.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/vgmknodes.c b/tools/vgmknodes.c index a5d0beee7..d37e62f8d 100644 --- a/tools/vgmknodes.c +++ b/tools/vgmknodes.c @@ -19,8 +19,10 @@ 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 (!lv_refresh(cmd, lv)) + if (!lv_refresh(cmd, lv)) { + log_error("Refresh failed for %s/%s.", lv->vg->name, lv->name); return_ECMD_FAILED; + } sync_local_dev_names(cmd); }