Skip to contentSkip to conversation

master - report: fix handling of reports with pure label fields

PATCH Peter Rajnoha 1 participant 1 message Feb 27, 2015

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=9ea77b788b0822fe06e8efb92d13f80dbc62e351
Commit:        9ea77b788b0822fe06e8efb92d13f80dbc62e351
Parent:        8bceb1e0bb460a728638aea179b000f07b4cbd0b
Author:        Peter Rajnoha <[email protected]>
AuthorDate:    Fri Feb 27 13:32:52 2015 +0100
Committer:     Peter Rajnoha <[email protected]>
CommitterDate: Fri Feb 27 13:39:25 2015 +0100

report: fix handling of reports with pure label fields

Two problems fixed by this patch:
- PV tags were not recognized at all when using them with pvs report that has only label fields (regression since 2.02.105)
- incorrect persistent .cache file to be generated after pvs report that has only label fields (regression since 2.02.106)

These bugs come from the transition from process_each_pv to process_each_label introduced by commit 67a7b7a87da65b2350f975272e581be5f41976e0 and commit 490226fc475232e0b158cf9fdc8670a663da4efe and related.

---
 WHATS_NEW        |    2 ++
 tools/reporter.c |   44 +++++++++++++++++++++++++++++++++++---------
 2 files changed, 37 insertions(+), 9 deletions(-)
WHATS_NEW +2 -0
index f4c4cde..cc974a6 100644
@@ -1,5 +1,7 @@
 Version 2.02.117 - 
 ====================================
+  Fix incorrect persistent .cache after report with label fields only (2.02.106).
+  Reinstate PV tag recognition for pvs if reporting label fields only (2.02.105).
   Rescan devices before vgimport with lvmetad so exported VG is seen.
   Fix hang by adjusting cluster mirror regionsize, avoiding CPG msg limit.
   Do not crash when --cachepolicy is given without --cachesettings.
tools/reporter.c +35 -9

56 lines not on this page · raw message