mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
debug: check for fail in id validation
This commit is contained in:
parent
3e331c8e68
commit
c440bb0742
@ -4149,7 +4149,8 @@ static int _check_or_repair_pv_ext(struct cmd_context *cmd,
|
||||
if (!pvl->pv->dev) {
|
||||
/* is_missing_pv doesn't catch NULL dev */
|
||||
memset(&uuid, 0, sizeof(uuid));
|
||||
id_write_format(&pvl->pv->id, uuid, sizeof(uuid));
|
||||
if (!id_write_format(&pvl->pv->id, uuid, sizeof(uuid)))
|
||||
goto_out;
|
||||
log_warn("WARNING: Not repairing PV %s with missing device.", uuid);
|
||||
continue;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user