[lvm-devel] master - dmstats: use 'statsname' and 'groupid' in default fields

Bryn Reeves bmr at fedoraproject.org
Tue Jul 5 18:55:11 UTC 2016


Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=c014425b6f6d1f963cddfbea362141f0815c1837
Commit:        c014425b6f6d1f963cddfbea362141f0815c1837
Parent:        b0964acadf47aca1769138607338c5ea56570398
Author:        Bryn M. Reeves <bmr at redhat.com>
AuthorDate:    Tue Jul 5 12:10:47 2016 +0100
Committer:     Bryn M. Reeves <bmr at redhat.com>
CommitterDate: Tue Jul 5 19:53:17 2016 +0100

dmstats: use 'statsname' and 'groupid' in default fields

Replace the 'name' field with 'statsname' in order to report alias
names for groups, and include the 'group_id' field between statsname
and the 'region_id' field to make it clear to the user when groups
are in use.
---
 tools/dmsetup.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/dmsetup.c b/tools/dmsetup.c
index 6900ba2..be6a276 100644
--- a/tools/dmsetup.c
+++ b/tools/dmsetup.c
@@ -4312,7 +4312,7 @@ static const char *splitname_report_options = "vg_name,lv_name,lv_layer";
 		"await,read_await,write_await"
 
 /* Device, region and area metadata. */
-#define STATS_DEV_INFO "name,region_id"
+#define STATS_DEV_INFO "statsname,group_id,region_id"
 #define STATS_AREA_INFO "area_id,area_start,area_len"
 #define STATS_AREA_INFO_FULL STATS_DEV_INFO ",region_start,region_len,area_count,area_id,area_start,area_len"
 #define STATS_REGION_INFO STATS_DEV_INFO ",region_start,region_len,area_count,area_len"




More information about the lvm-devel mailing list