[lvm-devel] master - dmstats: fix <backtrace> in _display_info_cols()

Bryn Reeves bmr at fedoraproject.org
Tue Jul 5 18:55:30 UTC 2016


Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=e9c6fd3cff806344f1d32bc16daadd732d0acef6
Commit:        e9c6fd3cff806344f1d32bc16daadd732d0acef6
Parent:        0f64f2d5fcf6cc9fa6529bde918938755b644128
Author:        Bryn M. Reeves <bmr at redhat.com>
AuthorDate:    Tue Jul 5 18:42:29 2016 +0100
Committer:     Bryn M. Reeves <bmr at redhat.com>
CommitterDate: Tue Jul 5 19:53:17 2016 +0100

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.
---
 tools/dmsetup.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/dmsetup.c b/tools/dmsetup.c
index 3ee9ed8..ed03c2b 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? */




More information about the lvm-devel mailing list