]> sourceware.org Git - lvm2.git/commitdiff
dmstats: fix <backtrace> in _display_info_cols()
authorBryn M. Reeves <bmr@redhat.com>
Tue, 5 Jul 2016 17:42:29 +0000 (18:42 +0100)
committerBryn M. Reeves <bmr@redhat.com>
Tue, 5 Jul 2016 18:53:17 +0000 (19:53 +0100)
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

index 3ee9ed83b860f3611d387263c112703838aa288f..ed03c2bc87a983686fc202e382b1547c6977a13a 100644 (file)
@@ -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? */
This page took 0.043597 seconds and 5 git commands to generate.