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

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