mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
lvscan: check result of id_write_format
Currently rather impossible to happen - but check for returned value of id_write_format().
This commit is contained in:
parent
ad9aee9af4
commit
cdb16a6039
@ -33,9 +33,11 @@ static int _lvscan_single_lvmetad(struct cmd_context *cmd, struct logical_volume
|
|||||||
|
|
||||||
dm_list_iterate_items(pvl, &all_pvs) {
|
dm_list_iterate_items(pvl, &all_pvs) {
|
||||||
if (!pvl->pv->dev) {
|
if (!pvl->pv->dev) {
|
||||||
id_write_format(&pvl->pv->id, pvid_s, sizeof(pvid_s));
|
if (!id_write_format(&pvl->pv->id, pvid_s, sizeof(pvid_s)))
|
||||||
log_warn("WARNING: Device for PV %s already missing, skipping.",
|
stack;
|
||||||
pvid_s);
|
else
|
||||||
|
log_warn("WARNING: Device for PV %s already missing, skipping.",
|
||||||
|
pvid_s);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (!lvmetad_pvscan_single(cmd, pvl->pv->dev, NULL))
|
if (!lvmetad_pvscan_single(cmd, pvl->pv->dev, NULL))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user