1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +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:
Zdenek Kabelac 2020-10-02 11:12:49 +02:00
parent e1af80c81c
commit 1b8c6f09bc

View File

@ -2216,8 +2216,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;
}