mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
cleanup: trace error from lvmcache_update_vgname_and_id
Check result value from lvmcache_update_vgname_and_id().
This commit is contained in:
parent
3a3e17d603
commit
a8fd88463e
@ -453,8 +453,9 @@ static struct raw_locn *_find_vg_rlocn(struct device_area *dev_area,
|
|||||||
"not match expected name %s.", vgname);
|
"not match expected name %s.", vgname);
|
||||||
|
|
||||||
bad:
|
bad:
|
||||||
if ((info = lvmcache_info_from_pvid(dev_area->dev->pvid, 0)))
|
if ((info = lvmcache_info_from_pvid(dev_area->dev->pvid, 0)) &&
|
||||||
lvmcache_update_vgname_and_id(info, &vgsummary_orphan);
|
!lvmcache_update_vgname_and_id(info, &vgsummary_orphan))
|
||||||
|
stack;
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@ -105,7 +105,8 @@ static void _update_lvmcache_orphan(struct lvmcache_info *info)
|
|||||||
|
|
||||||
memcpy(&vgsummary_orphan.vgid, lvmcache_fmt(info)->orphan_vg_name, strlen(lvmcache_fmt(info)->orphan_vg_name));
|
memcpy(&vgsummary_orphan.vgid, lvmcache_fmt(info)->orphan_vg_name, strlen(lvmcache_fmt(info)->orphan_vg_name));
|
||||||
|
|
||||||
lvmcache_update_vgname_and_id(info, &vgsummary_orphan);
|
if (!lvmcache_update_vgname_and_id(info, &vgsummary_orphan))
|
||||||
|
stack;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct labeller *_find_labeller(struct device *dev, char *buf,
|
static struct labeller *_find_labeller(struct device *dev, char *buf,
|
||||||
|
Loading…
Reference in New Issue
Block a user