mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-17 06:04:23 +03:00
tools: vgmknodes: log error message if LV refresh fails
This commit is contained in:
parent
75f9b0c25a
commit
5c6120186d
@ -19,8 +19,10 @@ 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)) {
|
||||||
|
log_error("Refresh failed for %s/%s.", lv->vg->name, lv->name);
|
||||||
return_ECMD_FAILED;
|
return_ECMD_FAILED;
|
||||||
|
}
|
||||||
sync_local_dev_names(cmd);
|
sync_local_dev_names(cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user