]> sourceware.org Git - lvm2.git/commit
report: add report_init_for_selection fn and modify report_object to support reportin...
authorPeter Rajnoha <prajnoha@redhat.com>
Tue, 2 Dec 2014 12:14:12 +0000 (13:14 +0100)
committerPeter Rajnoha <prajnoha@redhat.com>
Tue, 10 Feb 2015 15:05:25 +0000 (16:05 +0100)
commita64b39aef80d790dd4afe4ce8fdaa0ed1b0e2c48
treeea348808a3ddd39c39cf065ae8d9831c82e88e9f
parent51d96a170314b7ce75f233d42501262805384770
report: add report_init_for_selection fn and modify report_object to support reporting for selection only

The new "report_init_for_selection" is just a wrapper over
dm_report_init_with_selection that initializes reporting for selection
only. This means we're not going to do the actual reporting to output
for display and as such we intialize reporting as if no fields are reported
or sorted. The only fields "reported" are taken from the selection criteria
string and all such fields are marked as hidden automatically (FLD_HIDDEN flag).
These fields are used solely for selection criteria matching.

Also, modify existing report_object function that was used for reporting to
output for display. Now, it can either cause reporting to output or reporting
for selection only. The selection result is stored in struct selection_handle's
"selected" variable which can be handled further by any report_object caller.
lib/report/report.c
lib/report/report.h
tools/reporter.c
This page took 0.037547 seconds and 5 git commands to generate.