master - report: call appropriate handler to evaluate fuzzy reserved names and dynamic reserved values
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=3b1422c45c6c782f5134e74439ccdd6766085d4c Commit: 3b1422c45c6c782f5134e74439ccdd6766085d4c Parent: 335707b0e2e657a40ae87fb47dbf744cb53d74fb Author: Peter Rajnoha <[email protected]> AuthorDate: Wed May 20 18:47:54 2015 +0200 Committer: Peter Rajnoha <[email protected]> CommitterDate: Fri Jul 3 10:47:38 2015 +0200
report: call appropriate handler to evaluate fuzzy reserved names and dynamic reserved values
Wire the dm_report_reserved_handler instance call in reporting/selection infrastructure to handle reserved value actions (currently only DM_REPORT_RESERVED_PARSE_FUZZY_NAME and DM_REPORT_RESERVED_GET_DYNAMIC_VALUE actions).
--- lib/report/report.c | 8 +++++ libdm/libdm-report.c | 71 +++++++++++++++++++++++++++++++++++++++++++++---- 2 files changed, 73 insertions(+), 6 deletions(-)
lib/report/report.c +8 -0
@@ -96,6 +96,8 @@ static const int32_t _reserved_num_undef_32 = INT32_C(-1);* - 'reserved_value_id_n' (for 0) */ #define NUM uint64_t +#define NUM_HND dm_report_reserved_handler +#define HND (dm_report_reserved_handler)#define NOFLAG 0#define NAMED DM_REPORT_FIELD_RESERVED_VALUE_NAMED#define RANGE DM_REPORT_FIELD_RESERVED_VALUE_RANGE
@@ -117,6 +119,8 @@ static const int32_t _reserved_num_undef_32 = INT32_C(-1);#include "values.h" #undef NUM +#undef NUM_HND +#undef HND#undef NOFLAG#undef NAMED#undef RANGE
@@ -134,6 +138,8 @@ static const int32_t _reserved_num_undef_32 = INT32_C(-1);*/ #define NUM DM_REPORT_FIELD_TYPE_NUMBER +#define NUM_HND DM_REPORT_FIELD_TYPE_NUMBER +#define HND 0#define NOFLAG 0#define NAMED DM_REPORT_FIELD_RESERVED_VALUE_NAMED#define RANGE DM_REPORT_FIELD_RESERVED_VALUE_RANGE
@@ -154,6 +160,8 @@ static const struct dm_report_reserved_value _report_reserved_values[] = { };#undef NUM +#undef NUM_HND +#undef HND#undef NOFLAG#undef NAMED#undef RANGE
libdm/libdm-report.c +64 -5
112 lines not on this page · raw message