master - activation: lv_info_with_seg_status unify status selection
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=ed93f0973a307634d1266aeab5c0d2bbceab086e Commit: ed93f0973a307634d1266aeab5c0d2bbceab086e Parent: 0089201588d65bf131d3fadd1cf5be67a562c4b1 Author: Zdenek Kabelac <[email protected]> AuthorDate: Mon Dec 5 10:20:42 2016 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Mon Dec 5 17:09:13 2016 +0100
activation: lv_info_with_seg_status unify status selection
Start moving selection of status taken for a LV into a single place. The logic for showing info & status has been spread over multiple places and were doing too complex decision going agains each other.
Unify selection of status of origin & cow scanned device.
TODO: in future we want to grab status for LV and layered LV and have both statuses present for display - i.e. when 'old snapshot' of thinLV is takes and there is ongoing merge - at some moment we are not capable to show all needed info.
--- WHATS_NEW | 1 + lib/activate/activate.c | 82 ++++++++++++++++++++++++++++++-------------- lib/activate/dev_manager.c | 56 +++++++++++++++-------------- tools/reporter.c | 41 +++------------------- 4 files changed, 91 insertions(+), 89 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.169 - ===================================== + Decide which status is needed in one place for lv_info_with_seg_status. Fix matching of LV segment when checking for it info status. Report log_warn when status cannot be parsed. Test segment type before accessing segment members when checking status.
lib/activate/activate.c +56 -26
106 lines not on this page · raw message
lib/activate/dev_manager.c +29 -27
78 lines not on this page · raw message
tools/reporter.c +5 -36
64 lines not on this page · raw message