Blame SOURCES/lvm2-2_02_183-dmsetup-fix-stats-report-command-output.patch

3a5d46
 tools/dmsetup.c | 10 +++-------
3a5d46
 1 file changed, 3 insertions(+), 7 deletions(-)
3a5d46
3a5d46
diff --git a/tools/dmsetup.c b/tools/dmsetup.c
3a5d46
index 3cdf862..0b5b808 100644
3a5d46
--- a/tools/dmsetup.c
3a5d46
+++ b/tools/dmsetup.c
3a5d46
@@ -910,17 +910,13 @@ static int _display_info_cols(struct dm_task *dmt, struct dm_info *info)
3a5d46
 		if (!(obj.stats = dm_stats_create(DM_STATS_PROGRAM_ID)))
3a5d46
 			goto_out;
3a5d46
 
3a5d46
-		if (!dm_stats_get_nr_regions(obj.stats)) {
3a5d46
-			log_debug("Skipping %s with no regions.", dm_task_get_name(dmt));
3a5d46
+		dm_stats_bind_devno(obj.stats, info->major, info->minor);
3a5d46
+
3a5d46
+		if (!dm_stats_populate(obj.stats, _program_id, DM_STATS_REGIONS_ALL)) {
3a5d46
 			r = 1;
3a5d46
 			goto out;
3a5d46
 		}
3a5d46
 
3a5d46
-		dm_stats_bind_devno(obj.stats, info->major, info->minor);
3a5d46
-
3a5d46
-		if (!dm_stats_populate(obj.stats, _program_id, DM_STATS_REGIONS_ALL))
3a5d46
-			goto_out;
3a5d46
-
3a5d46
 		/* Update timestamps and handle end-of-interval accounting. */
3a5d46
 		_update_interval_times();
3a5d46