Blame SOURCES/lvm2-2_02_187-dmsetup-do-not-treat-no-groups-as-an-error-in-dmstat.patch

b83e05
 tools/dmsetup.c | 6 ++++--
b83e05
 1 file changed, 4 insertions(+), 2 deletions(-)
b83e05
b83e05
diff --git a/tools/dmsetup.c b/tools/dmsetup.c
b83e05
index 60e0638..15a09c6 100644
b83e05
--- a/tools/dmsetup.c
b83e05
+++ b/tools/dmsetup.c
b83e05
@@ -941,10 +941,12 @@ static int _display_info_cols(struct dm_task *dmt, struct dm_info *info)
b83e05
 		}
b83e05
 	}
b83e05
 
b83e05
-	/* group report with no groups? */
b83e05
+	/* Group report with no groups is not an error */
b83e05
 	if ((walk_flags == DM_STATS_WALK_GROUP)
b83e05
-	    && !dm_stats_get_nr_groups(obj.stats))
b83e05
+	    && !dm_stats_get_nr_groups(obj.stats)) {
b83e05
+		r = 1;
b83e05
 		goto out;
b83e05
+	}
b83e05
 
b83e05
 	dm_stats_walk_init(obj.stats, walk_flags);
b83e05
 	dm_stats_walk_do(obj.stats) {