master - libdm: report: implement DM_REPORT_GROUP_BASIC for extended report output
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=230b7ff0f6c844bde2185baa9db63961baefb3d0 Commit: 230b7ff0f6c844bde2185baa9db63961baefb3d0 Parent: a9fe57db1c285ef7052a1054891f5eb7dbbb01b2 Author: Peter Rajnoha <[email protected]> AuthorDate: Mon May 23 10:47:03 2016 +0200 Committer: Peter Rajnoha <[email protected]> CommitterDate: Mon Jun 20 10:42:26 2016 +0200
libdm: report: implement DM_REPORT_GROUP_BASIC for extended report output
This patch introduces DM_REPORT_GROUP_BASIC report group type. This type has exactly the classical output format as we know from before introduction of report groups. However, in addition to that, it allows to put several reports into a group - this is the very basic grouping scheme that doesn't change the output format itself:
Report: report1_name
Header1 Header2 ... value value ... value value ... ... ... ...
Report: report2_name
Header1 Header2 ... value value ... value value ... ... ... ... --- WHATS_NEW_DM | 1 + libdm/libdevmapper.h | 1 + libdm/libdm-report.c | 70 +++++++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 71 insertions(+), 1 deletions(-)
WHATS_NEW_DM +1 -0
@@ -1,5 +1,6 @@ Version 1.02.128 - ================================= + Introduce DM_REPORT_GROUP_BASIC for report group with basic report output. Introduce DM_REPORT_GROUP_SINGLE for report group having single report only. Add dm_report_group_{create,push,pop,destroy} to support report grouping.
libdm/libdevmapper.h +1 -0
@@ -2710,6 +2710,7 @@ struct dm_report_group;typedef enum {DM_REPORT_GROUP_SINGLE , +DM_REPORT_GROUP_BASIC }dm_report_group_type_t ;struct dm_report_group *dm_report_group_create (dm_report_group_type_t type,void *data);
libdm/libdm-report.c +69 -1
138 lines not on this page · raw message