master - libdm: add dm_report_compact_given_fields
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=508f0f5a21af8decf32944e01ecf17c0059a9c9f Commit: 508f0f5a21af8decf32944e01ecf17c0059a9c9f Parent: df34fcdafd20ac195e588a06c8fc5a904fa71669 Author: Peter Rajnoha <[email protected]> AuthorDate: Fri Oct 16 15:50:13 2015 +0200 Committer: Peter Rajnoha <[email protected]> CommitterDate: Fri Oct 16 17:05:54 2015 +0200
libdm: add dm_report_compact_given_fields
dm_report_compact_given_fields is the same as dm_report_compact_fields, but it processes only given fields, not all the fields in the report like dm_report_compact_field does.
--- WHATS_NEW_DM | 1 + libdm/.exported_symbols.DM_1_02_110 | 1 + libdm/libdevmapper.h | 7 ++++ libdm/libdm-report.c | 62 +++++++++++++++++++++++++++++++++- 4 files changed, 69 insertions(+), 2 deletions(-)
WHATS_NEW_DM +1 -0
@@ -1,5 +1,6 @@ Version 1.02.110 - ====================================== + Add dm_report_compact_given_fields to remove given empty fields from report. Use libdm status parsing and local mem raid dmeventd plugin. Use local mem pool and lock only lvm2 execution for mirror dmeventd plugin. Lock protect only lvm2 execution for snapshot and thin dmeventd plugin.
libdm/.exported_symbols.DM_1_02_110 new file +1 -0
@@ -0,0 +1 @@ +dm_report_compact_given_fields
libdm/libdevmapper.h +7 -0
@@ -2549,6 +2549,13 @@ int dm_report_object_is_selected(struct dm_report *rh, void *object, int do_outpint dm_report_compact_fields (struct dm_report *rh);/* +* The same as dm_report_compact_fields, but for selected fields only. +* The "fields" arg is comma separated list of field names (the same format +* as used for "output_fields" arg in dm_report_init fn). +*/ +int dm_report_compact_given_fields (struct dm_report *rh,const char *fields); + +/* * Returns 1 if there is no data waiting to be output. */ int dm_report_is_empty (struct dm_report *rh);
libdm/libdm-report.c +60 -2
86 lines not on this page · raw message