]> sourceware.org Git - lvm2.git/commit
libdm: add enum based counter and metric calls
authorBryn M. Reeves <bmr@redhat.com>
Mon, 29 Feb 2016 17:33:16 +0000 (17:33 +0000)
committerBryn M. Reeves <bmr@redhat.com>
Tue, 5 Jul 2016 18:53:16 +0000 (19:53 +0100)
commit82e57660623c6b131632a5ec37deef3428de5399
tree7eae417b9f3b3a645851be966813de2180781e9d
parent69f808ac8d25e3c7ef39bd2de66fed1efd290bbe
libdm: add enum based counter and metric calls

Add a new enum based interface for accessing counter and metric
values that uses a single function for each:

uint64_t dm_stats_get_counter(const struct dm_stats *dms,
                              dm_stats_counter_t counter
                              uint64_t region_id, uint64_t area_id);

int dm_stats_get_metric(const struct dm_stats *dms, int metric,
                        uint64_t region_id, uint64_t area_id,
                        double *value);

This simplifies the implementation of value aggregation for
groups of regions. The named function interface now calls the
enum interface internally so that all new functionality is
available regardless of the method used to retrieve values.
WHATS_NEW_DM
libdm/.exported_symbols.DM_1_02_129
libdm/libdevmapper.h
libdm/libdm-stats.c
This page took 0.038594 seconds and 5 git commands to generate.