summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2016-07-05 18:42:29 +0100
committerBryn M. Reeves <bmr@redhat.com>2016-07-05 19:29:51 +0100
commit3b6f7f00f725bc01d27796217cc53d77d5f42d31 (patch)
treeab5038a3092eb52180bf77832e92c6fc9dec2cc4
parent42746c70262d8999d7780410553c64b769fca2ce (diff)
downloadlvm2-3b6f7f00f725bc01d27796217cc53d77d5f42d31.tar.gz
dmstats: fix <backtrace> in _display_info_cols()
Remove a false <backtrace> in _display_info_cols(): it is not an error if there are no regions to display. Fixes commit e6724f03.
-rw-r--r--tools/dmsetup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/dmsetup.c b/tools/dmsetup.c
index 3ee9ed83b..ed03c2bc8 100644
--- a/tools/dmsetup.c
+++ b/tools/dmsetup.c
@@ -884,9 +884,9 @@ static int _display_info_cols(struct dm_task *dmt, struct dm_info *info)
if (!dm_stats_list(obj.stats, _program_id))
goto_out;
- /* No regions to report */
+ /* No regions to report is not an error */
if (!dm_stats_get_nr_regions(obj.stats))
- goto_out;
+ goto out;
}
/* group report with no groups? */