master - vdo: support functions to map enums to string names
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=aa63dfbe39860f04d8965e2afc4959cd20988411 Commit: aa63dfbe39860f04d8965e2afc4959cd20988411 Parent: aff69ecf396a858d684cd3e54baea131e229f5a2 Author: Zdenek Kabelac <[email protected]> AuthorDate: Mon Jul 2 21:58:18 2018 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Mon Jul 9 15:28:35 2018 +0200
vdo: support functions to map enums to string names
Translate VDO enums to printable strings.
--- lib/metadata/metadata-exported.h | 3 ++ lib/metadata/vdo_manip.c | 50 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+), 0 deletions(-)
lib/metadata/metadata-exported.h +3 -0
@@ -1251,6 +1251,9 @@ int wipe_cache_pool(struct logical_volume *cache_pool_lv);/* ++ metadata/vdo_manip.c */ +const char *get_vdo_compression_state_name (enum dm_vdo_compression_state state); +const char *get_vdo_index_state_name (enum dm_vdo_index_state state); +const char *get_vdo_operating_mode_name (enum dm_vdo_operating_mode mode);uint64_t get_vdo_pool_virtual_size (const struct lv_segment *vdo_pool_seg); struct logical_volume *convert_vdo_pool_lv(struct logical_volume *data_lv, const struct dm_vdo_target_params *vtp,
lib/metadata/vdo_manip.c +50 -0
56 lines not on this page · raw message