summaryrefslogtreecommitdiff
path: root/libdm
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2016-07-06 11:10:23 +0100
committerBryn M. Reeves <bmr@redhat.com>2016-07-06 11:10:23 +0100
commit28658541daef567f0f767190c244a100ea45476f (patch)
treed90b570780377412baa25016679b81398c0eb94c /libdm
parent1faa208067df2989c716fff40568f3948392b186 (diff)
downloadlvm2-28658541daef567f0f767190c244a100ea45476f.tar.gz
libdm: do not permit grouping regions with histograms
Although not harmful do not allow a group containing regions with histograms since it is not currently possible to present histogram data aggregated for the group.
Diffstat (limited to 'libdm')
-rw-r--r--libdm/libdm-stats.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libdm/libdm-stats.c b/libdm/libdm-stats.c
index c669b5111..06aa64566 100644
--- a/libdm/libdm-stats.c
+++ b/libdm/libdm-stats.c
@@ -3767,7 +3767,11 @@ int dm_stats_create_group(struct dm_stats *dms, const char *members,
FMTu64, i, dms->regions[i].group_id);
goto bad;
}
-
+ if (dms->regions[i].bounds) {
+ log_error("Region ID %d: grouping regions with "
+ "histograms is not yet supported", i);
+ goto bad;
+ }
if (dms->regions[i].timescale == 1)
precise++;