1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

fullreport: fix with lvmetad and only orphan PVs are visible

The report uses process_each_vg() which populates lvmcache
based on a VG list from lvmetad.  If there are no VGs,
but only orphan PVs, the orphans are not shown.  Add an
explicit call to populate lvmcache with PV info from lvmetad.
This commit is contained in:
David Teigland 2018-05-18 14:26:32 -05:00
parent 0253f5a21d
commit bc275bcddf

View File

@ -1421,6 +1421,8 @@ static int _report(struct cmd_context *cmd, int argc, char **argv, report_type_t
return ECMD_FAILED; return ECMD_FAILED;
} }
lvmcache_seed_infos_from_lvmetad(cmd);
if (single_args->report_type == FULL) { if (single_args->report_type == FULL) {
handle->custom_handle = &args; handle->custom_handle = &args;
r = process_each_vg(cmd, argc, argv, NULL, NULL, 0, 1, handle, &_full_report_single); r = process_each_vg(cmd, argc, argv, NULL, NULL, 0, 1, handle, &_full_report_single);