Skip to contentSkip to conversation

master - report: recognize report field name variants without any underscores too

PATCH Peter Rajnoha 1 participant 1 message Aug 3, 2015

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=a5b476a7d3ffd06fa8124395857b4dcca32d612b
Commit:        a5b476a7d3ffd06fa8124395857b4dcca32d612b
Parent:        b3997469b56eb54f78fc84a8d9fde285ffd53c56
Author:        Peter Rajnoha <[email protected]>
AuthorDate:    Mon Aug 3 16:29:50 2015 +0200
Committer:     Peter Rajnoha <[email protected]>
CommitterDate: Mon Aug 3 16:29:50 2015 +0200

report: recognize report field name variants without any underscores too

Whenver reporting field name is registered with libdevmapper and if the field name contains any number of underscores ('_'), libdm can now automatically recognize any of its variant without any underscores used.

For example:

..for underscores in prefixes:
pvs -o pv_name
pvs -o name
pvs -o pvname (newly recognized besides pvname)

..for underscores in the name:
lvs -o cache_mode
lvs -o cachemode

..or even multiple underscores:
pvs -o pv___na___me

It's all variant of the same field name.

---
 WHATS_NEW_DM         |    1 +
 libdm/libdm-report.c |   92 ++++++++++++++++++++++++++++++++++++++++++++------
 2 files changed, 82 insertions(+), 11 deletions(-)
WHATS_NEW_DM +1 -0
index 2a006db..57cfce4 100644
@@ -1,5 +1,6 @@
 Version 1.02.104 -
 =================================
+  Recognize report field name variants without any underscores too.
   Add dmsetup --interval and --count to repeat reports at specified intervals.
   Add report interval and waiting functions to libdevmapper.
   Add dm_timestamp functions to libdevmapper.
libdm/libdm-report.c +81 -11

162 lines not on this page · raw message