1
0
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:
Zdenek Kabelac 2017-06-26 23:20:29 +02:00
parent 3e331c8e68
commit c440bb0742

View File

@ -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;
}