mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
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
.
This commit is contained in:
parent
0f64f2d5fc
commit
e9c6fd3cff
@ -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))
|
if (!dm_stats_list(obj.stats, _program_id))
|
||||||
goto_out;
|
goto_out;
|
||||||
|
|
||||||
/* No regions to report */
|
/* No regions to report is not an error */
|
||||||
if (!dm_stats_get_nr_regions(obj.stats))
|
if (!dm_stats_get_nr_regions(obj.stats))
|
||||||
goto_out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* group report with no groups? */
|
/* group report with no groups? */
|
||||||
|
Loading…
Reference in New Issue
Block a user