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:
parent
0253f5a21d
commit
bc275bcddf
@ -1421,6 +1421,8 @@ static int _report(struct cmd_context *cmd, int argc, char **argv, report_type_t
|
||||
return ECMD_FAILED;
|
||||
}
|
||||
|
||||
lvmcache_seed_infos_from_lvmetad(cmd);
|
||||
|
||||
if (single_args->report_type == FULL) {
|
||||
handle->custom_handle = &args;
|
||||
r = process_each_vg(cmd, argc, argv, NULL, NULL, 0, 1, handle, &_full_report_single);
|
||||
|
Loading…
Reference in New Issue
Block a user