summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2016-07-05 12:10:47 +0100
committerBryn M. Reeves <bmr@redhat.com>2016-07-05 19:53:17 +0100
commitc014425b6f6d1f963cddfbea362141f0815c1837 (patch)
treeb0713b4d965cc465b7741594ab95404efb046765
parentb0964acadf47aca1769138607338c5ea56570398 (diff)
downloadlvm2-c014425b6f6d1f963cddfbea362141f0815c1837.tar.gz
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.
-rw-r--r--tools/dmsetup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/dmsetup.c b/tools/dmsetup.c
index 6900ba20d..be6a276c7 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"