mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-22 06:50:52 +03:00
debug: show actually reason for taking this code path
Instead of not so useful backtrace, report what was the reason.
This commit is contained in:
parent
03bddd7d41
commit
b97440290c
@ -2075,8 +2075,10 @@ static int _create_vg_text_instance(struct format_instance *fid,
|
||||
}
|
||||
|
||||
if (type & FMT_INSTANCE_MDAS) {
|
||||
if (!(vginfo = lvmcache_vginfo_from_vgname(vg_name, vg_id)))
|
||||
goto_out;
|
||||
if (!(vginfo = lvmcache_vginfo_from_vgname(vg_name, vg_id))) {
|
||||
log_debug("No cached vginfo for VG %s and ID %s.", vg_name, vg_id);
|
||||
goto out;
|
||||
}
|
||||
if (!lvmcache_fid_add_mdas_vg(vginfo, fid))
|
||||
goto_out;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user