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

report: fix foreign reporting without lvmetad

This commit is contained in:
David Teigland 2015-02-19 15:24:31 -06:00
parent b896bf8f5a
commit 6bc35a351a
2 changed files with 2 additions and 6 deletions

View File

@ -13,9 +13,6 @@ test_description='Test system_id'
. lib/inittest
# FIXME: vgs --foreign is not seeing foreign vg when lvmetad is not used
test -e LOCAL_LVMETAD || skip
aux prepare_devs 1
# create vg with system_id using each source

View File

@ -587,10 +587,9 @@ static int _report(struct cmd_context *cmd, int argc, char **argv,
* to their own VGs. We also want to override the default
* behavior which skips over foreign VGs.
*/
if (arg_is_set(cmd, foreign_ARG) && lvmetad_used()) {
cmd->include_foreign_vgs = arg_is_set(cmd, foreign_ARG);
if (cmd->include_foreign_vgs && lvmetad_used())
lvmetad_pvscan_all_devs(cmd, NULL);
cmd->include_foreign_vgs = 1;
}
aligned = find_config_tree_bool(cmd, report_aligned_CFG, NULL);
buffered = find_config_tree_bool(cmd, report_buffered_CFG, NULL);